From: Joel Brobecker Date: Fri, 22 Jun 2012 18:59:04 +0000 (+0000) Subject: Add -Wdeclaration-after-statement to list of compiler warnings X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=352b3eda56110eb857612d07956b155ff0ee0961;p=binutils-gdb.git Add -Wdeclaration-after-statement to list of compiler warnings gdb/ChangeLog: * configure.ac (build_warnings): Add -Wdeclaration-after-statement. * configure: Regenerate. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 857fde806ea..dec99230cb5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2012-06-22 Joel Brobecker + + * configure.ac (build_warnings): Add -Wdeclaration-after-statement. + * configure: Regenerate. + 2012-06-20 Yao Qi * python/py-inferior.c: Update comments of infpy_read_memory diff --git a/gdb/configure b/gdb/configure index 1d03188f54a..b6f4a064f89 100755 --- a/gdb/configure +++ b/gdb/configure @@ -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. diff --git a/gdb/configure.ac b/gdb/configure.ac index e48ec053b3a..f77aa854111 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -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.