aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2012-06-22 18:59:04 +0000
committerJoel Brobecker <brobecker@gnat.com>2012-06-22 18:59:04 +0000
commit352b3eda56110eb857612d07956b155ff0ee0961 (patch)
tree087ca8244bceae7a7b866a0154304c4198af6095
parenteabc84f4848311a68f65df04e428c8b53a92f1c0 (diff)
downloadgdb-352b3eda56110eb857612d07956b155ff0ee0961.zip
gdb-352b3eda56110eb857612d07956b155ff0ee0961.tar.gz
gdb-352b3eda56110eb857612d07956b155ff0ee0961.tar.bz2
Add -Wdeclaration-after-statement to list of compiler warnings
gdb/ChangeLog: * configure.ac (build_warnings): Add -Wdeclaration-after-statement. * configure: Regenerate.
-rw-r--r--gdb/ChangeLog5
-rwxr-xr-xgdb/configure3
-rw-r--r--gdb/configure.ac3
3 files changed, 9 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 857fde8..dec9923 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
diff --git a/gdb/configure b/gdb/configure
index 1d03188..b6f4a06 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 e48ec05..f77aa85 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.