configure: Move gcc-only -W option where it belongs
authorLuca Barbato <lu_zero@gentoo.org>
Mon, 28 Oct 2013 11:45:04 +0000 (12:45 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Tue, 29 Oct 2013 10:36:00 +0000 (11:36 +0100)
configure

index 9c2e7fc..34a3650 100755 (executable)
--- a/configure
+++ b/configure
@@ -3907,7 +3907,6 @@ check_cflags -Wundef
 check_cflags -Wmissing-prototypes
 check_cflags -Wstrict-prototypes
 enabled extra_warnings && check_cflags -Winline
-enabled extra_warnings || check_cflags -Wno-maybe-uninitialized
 
 # add some linker flags
 check_ldflags -Wl,--warn-common
@@ -3999,6 +3998,7 @@ elif enabled gcc; then
     check_cflags -Werror=return-type
     check_cflags -Werror=declaration-after-statement
     check_cflags -Werror=vla
+    enabled extra_warnings || check_cflags -Wno-maybe-uninitialized
 elif enabled llvm_gcc; then
     check_cflags -mllvm -stack-alignment=16
 elif enabled clang; then