[PATCH v2 7/7] Enable -Wmissing-declarations diagnostic
Simon Marchi
simon.marchi@efficios.com
Fri Jan 10 22:00:00 GMT 2020
Now that most warnings of this kind are fixed, we can enable
-Wmissing-declarations. I say "most", because it is likely that there
are some more in some configurations I am not able to build, but they
should be pretty easy to fix.
gdb/ChangeLog:
* warning.m4: Add -Wmissing-declarations to build_warnings.
* configure: Re-generate.
Change-Id: Iae9b59f22eb5dd1965d09f34c5c9e212cddf67ba
---
gdb/configure | 3 ++-
gdb/gdbserver/configure | 3 ++-
gdb/warning.m4 | 3 ++-
3 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/gdb/configure b/gdb/configure
index b572d414ca51..aa53c097ca8f 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -16105,7 +16105,8 @@ build_warnings="-Wall -Wpointer-arith \
-Wshadow=local \
-Wdeprecated-copy \
-Wdeprecated-copy-dtor \
--Wredundant-move"
+-Wredundant-move \
+-Wmissing-declarations"
case "${host}" in
*-*-mingw32*)
diff --git a/gdb/gdbserver/configure b/gdb/gdbserver/configure
index 4de751b44915..f70b3d552156 100755
--- a/gdb/gdbserver/configure
+++ b/gdb/gdbserver/configure
@@ -8094,7 +8094,8 @@ build_warnings="-Wall -Wpointer-arith \
-Wshadow=local \
-Wdeprecated-copy \
-Wdeprecated-copy-dtor \
--Wredundant-move"
+-Wredundant-move \
+-Wmissing-declarations"
case "${host}" in
*-*-mingw32*)
diff --git a/gdb/warning.m4 b/gdb/warning.m4
index 00bcdfa7ea50..e2b8a43ddbd5 100644
--- a/gdb/warning.m4
+++ b/gdb/warning.m4
@@ -49,7 +49,8 @@ build_warnings="-Wall -Wpointer-arith \
-Wshadow=local \
-Wdeprecated-copy \
-Wdeprecated-copy-dtor \
--Wredundant-move"
+-Wredundant-move \
+-Wmissing-declarations"
case "${host}" in
*-*-mingw32*)
--
2.24.1
More information about the Gdb-patches
mailing list