]> gcc.gnu.org Git - gcc.git/blobdiff - gcc/configure.ac
re PR c++/50810 (c++0x-compat does not warn about narrowing conversions)
[gcc.git] / gcc / configure.ac
index dd6cf2f17f3ecd2946eb891e5b498378feb754de..9196996aedfbe90fc28bdaf5d0aa33e05f4eba6d 100644 (file)
@@ -329,10 +329,11 @@ GCC_STDINT_TYPES
 # * 'long long'
 # * variadic macros
 # * overlong strings
+# * C++11 narrowing conversions in { }
 # So, we only use -pedantic if we can disable those warnings.
 
 ACX_PROG_CC_WARNING_OPTS(
-       m4_quote(m4_do([-W -Wall -Wwrite-strings -Wcast-qual])), [loose_warn])
+       m4_quote(m4_do([-W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual])), [loose_warn])
 ACX_PROG_CC_WARNING_OPTS(
        m4_quote(m4_do([-Wstrict-prototypes -Wmissing-prototypes])),
        [c_loose_warn])
This page took 0.029289 seconds and 5 git commands to generate.