make/autoconf/flags-cflags.m4
branchihse-cflags-rewrite-branch
changeset 56249 4141c47bb309
parent 56242 e60ee82dc0ce
child 56250 d64ab781c927
equal deleted inserted replaced
56248:b61bf4510be2 56249:4141c47bb309
   182   LDFLAGS_WARNINGS_ARE_ERRORS=""
   182   LDFLAGS_WARNINGS_ARE_ERRORS=""
   183   case "${TOOLCHAIN_TYPE}" in
   183   case "${TOOLCHAIN_TYPE}" in
   184     microsoft)
   184     microsoft)
   185       DISABLE_WARNING_PREFIX="-wd"
   185       DISABLE_WARNING_PREFIX="-wd"
   186       CFLAGS_WARNINGS_ARE_ERRORS="-WX"
   186       CFLAGS_WARNINGS_ARE_ERRORS="-WX"
   187       
   187 
   188       WARNINGS_ENABLE_ALL="-Wall"
   188       WARNINGS_ENABLE_ALL="-Wall"
   189       EVEN_MORE="4054 4055 4057 4100 4127 4131 4132 4152 4201 4204 4206 4210 4232 4244 4255 4263 4264 4295 4302 4306 4311 4324 4366 4388 4512 4548 4555 4574 4800 4986 4987"
   189       EVEN_MORE="4054 4055 4057 4100 4127 4131 4132 4152 4201 4204 4206 4210 4232 4244 4255 4263 4264 4295 4302 4306 4311 4324 4366 4388 4512 4548 4555 4574 4800 4986 4987"
   190       DISABLED_WARNINGS="4061 4062 4130 4189 4191 4211 4242 4245 4265 4287 4296 4310 4312 4350 4355 4365 4389 4505 4510 4514 4571 4610 4619 4623 4625 4626 4640 4668 4701 4702 4703 4706 4710 4711 4820 4917 4946 $EVEN_MORE"
   190       DISABLED_WARNINGS="4061 4062 4130 4189 4191 4211 4242 4245 4265 4287 4296 4310 4312 4350 4355 4365 4389 4505 4510 4514 4571 4610 4619 4623 4625 4626 4640 4668 4701 4702 4703 4706 4710 4711 4820 4917 4946 $EVEN_MORE"
   191       ;;
   191       ;;
   192     solstudio)
   192     solstudio)
   195       LDFLAGS_WARNINGS_ARE_ERRORS="-Wl,-z,fatal-warnings"
   195       LDFLAGS_WARNINGS_ARE_ERRORS="-Wl,-z,fatal-warnings"
   196 
   196 
   197       WARNINGS_ENABLE_ALL_CFLAGS="-v -fd -xtransition"
   197       WARNINGS_ENABLE_ALL_CFLAGS="-v -fd -xtransition"
   198       WARNINGS_ENABLE_ALL_CXXFLAGS="+w +w2"
   198       WARNINGS_ENABLE_ALL_CXXFLAGS="+w +w2"
   199 
   199 
   200       DISABLED_WARNINGS_C="E_OLD_STYLE_FUNC_DECL E_OLD_STYLE_FUNC_DEF E_SEMANTICS_OF_OP_CHG_IN_ANSI_C E_NO_REPLACEMENT_IN_STRING"
   200       DISABLED_WARNINGS_C="E_OLD_STYLE_FUNC_DECL E_OLD_STYLE_FUNC_DEF E_SEMANTICS_OF_OP_CHG_IN_ANSI_C E_NO_REPLACEMENT_IN_STRING E_DECLARATION_IN_CODE"
   201       DISABLED_WARNINGS_CXX="inllargeuse inllargeint notused wemptydecl notemsource"
   201       DISABLED_WARNINGS_CXX="inllargeuse inllargeint notused wemptydecl notemsource"
   202       # helpful quality checks, should not be disabled: inllargeuse inllargeint
   202       # helpful quality checks, should not be disabled: inllargeuse inllargeint
   203       ;;
   203       ;;
   204     gcc)
   204     gcc)
   205       # Prior to gcc 4.4, a -Wno-X where X is unknown for that version of gcc will cause an error
   205       # Prior to gcc 4.4, a -Wno-X where X is unknown for that version of gcc will cause an error