Add -Wdeclaration-after-statement to list of compiler warnings
authorJoel Brobecker <brobecker@gnat.com>
Fri, 22 Jun 2012 18:59:04 +0000 (18:59 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Fri, 22 Jun 2012 18:59:04 +0000 (18:59 +0000)
gdb/ChangeLog:

        * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
        * configure: Regenerate.

gdb/ChangeLog
gdb/configure
gdb/configure.ac

index 857fde806ea9f9e8f76936ac9bf1477d96c89b8e..dec99230cb5087b68fa6b0a0c56ab40faa9a9756 100644 (file)
@@ -1,3 +1,8 @@
+2012-06-22  Joel Brobecker  <brobecker@adacore.com>
+
+       * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
+       * configure: Regenerate.
+
 2012-06-20  Yao Qi  <yao@codesourcery.com>
 
        * python/py-inferior.c: Update comments of infpy_read_memory
index 1d03188f54a50e8d7aef4d481660e0a81a14fd87..b6f4a064f89c0460a94c06c995f0b335fa7ed553 100755 (executable)
@@ -12365,7 +12365,8 @@ fi
 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
 -Wformat-nonliteral -Wno-pointer-sign \
 -Wno-unused -Wunused-value -Wunused-function \
--Wno-switch -Wno-char-subscripts -Wmissing-prototypes"
+-Wno-switch -Wno-char-subscripts -Wmissing-prototypes \
+-Wdeclaration-after-statement"
 
 # Enable -Wno-format by default when using gcc on mingw since many
 # GCC versions complain about %I64.
index e48ec053b3a835327b37e812905c3703f606510f..f77aa854111e028d513ed0e7e2f03a219bb44e2f 100644 (file)
@@ -1850,7 +1850,8 @@ fi
 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
 -Wformat-nonliteral -Wno-pointer-sign \
 -Wno-unused -Wunused-value -Wunused-function \
--Wno-switch -Wno-char-subscripts -Wmissing-prototypes"
+-Wno-switch -Wno-char-subscripts -Wmissing-prototypes \
+-Wdeclaration-after-statement"
 
 # Enable -Wno-format by default when using gcc on mingw since many
 # GCC versions complain about %I64.