make/autoconf/flags-cflags.m4
branchihse-cflags-rewrite-branch
changeset 56760 8a18c7457c88
parent 56726 3a9b7a1f9197
child 56899 2c5e7f347c49
--- a/make/autoconf/flags-cflags.m4	Thu Jun 14 11:58:17 2018 +0200
+++ b/make/autoconf/flags-cflags.m4	Thu Jun 14 15:34:19 2018 +0200
@@ -158,7 +158,9 @@
       
       # 4061
       #WARNINGS_ENABLE_ALL="-Wall"
-      WARNINGS_ENABLE_ALL="-W4"
+      WARNINGS_ENABLE_ALL="-W3"
+      # W4 and Wall is higher but is too link-like.
+      #WARNINGS_ENABLE_ALL="-W4"
       # 4061, 4062 = enum not handled
       # 4130
       #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"
@@ -166,7 +168,8 @@
       #DISABLED_WARNINGS_WALL="4061 4062 $INIT_DISABLE"
       RETRY_W4_HOTSPOT="4189 4211 4245 4310 4389 4505 4510 4610 4701 4702 4703 4706"
       RETRY_W4_JDK="4054 4055 4057 4100 4127 4130 4131 4132 4152 4201 4204 4206 4210 4232 4244 4295 4306 4324 4366 4512 4800"
-      DISABLED_WARNINGS="$RETRY_W4_HOTSPOT $RETRY_W4_JDK"
+      DISABLED_WARNINGS="4456"
+      #was: $RETRY_W4_HOTSPOT $RETRY_W4_JDK 4061 4242 4255 4265 4365 4456 4459 4514 4619 4623 4625 4626 4668 4710 4820 5026 5027 5038 5039 4596 4571 4577 4605 4774"
       ;;
     solstudio)
       DISABLE_WARNING_PREFIX="-erroff="