configure: -Werror= make no sense for "no" and "extra"
authorAlban Browaeys <prahal@yahoo.com>
Wed, 1 Aug 2012 12:43:21 +0000 (14:43 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 4 Aug 2012 15:53:11 +0000 (11:53 -0400)
gcc error out when -Werror=extra -Werror=no-*
are used. And it is the most sensible thing to do.

https://bugzilla.gnome.org/show_bug.cgi?id=680976

configure.ac

index 294ddac..6394bde 100644 (file)
@@ -467,9 +467,9 @@ m4_if(folks_released, [1], [],
             -a x$winit_self = xyes -a x$wformat = xyes -a \
             x$wmissing_include_dirs = xyes -a x$waggregate_return = xyes -a \
             x$wdeclaration_after_statement = xyes; then
-            ERROR_CFLAGS="$ERROR_CFLAGS ${flag}extra \
-                ${flag}no-missing-field-initializers \
-                ${flag}no-unused-parameter ${flag}strict-prototypes \
+            ERROR_CFLAGS="$ERROR_CFLAGS -Wextra \
+                -Wno-missing-field-initializers \
+                -Wno-unused-parameter ${flag}strict-prototypes \
                 ${flag}missing-prototypes ${flag}implicit-function-declaration \
                 ${flag}pointer-arith ${flag}init-self ${flag}format=2 \
                 ${flag}missing-include-dirs ${flag}aggregate-return \