[binutils-gdb] Enable -Wmissing-declarations diagnostic

Simon Marchi simark@sourceware.org
Mon Jan 13 19:10:00 GMT 2020


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=bb564c588d95608ff87067cb05db910cf38dc2d3

commit bb564c588d95608ff87067cb05db910cf38dc2d3
Author: Simon Marchi <simon.marchi@efficios.com>
Date:   Mon Jan 13 14:05:44 2020 -0500

    Enable -Wmissing-declarations diagnostic
    
    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.
    
    gdb/gdbserver/ChangeLog:
    
    	* configure: Re-generate.
    
    Change-Id: Iae9b59f22eb5dd1965d09f34c5c9e212cddf67ba

Diff:
---
 gdb/ChangeLog           | 5 +++++
 gdb/configure           | 3 ++-
 gdb/gdbserver/ChangeLog | 4 ++++
 gdb/gdbserver/configure | 3 ++-
 gdb/warning.m4          | 3 ++-
 5 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f2992f1..ea5352d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
 2020-01-13  Simon Marchi  <simon.marchi@efficios.com>
 
+	* warning.m4: Add -Wmissing-declarations to build_warnings.
+	* configure: Re-generate.
+
+2020-01-13  Simon Marchi  <simon.marchi@efficios.com>
+
 	* python/python.c (init__gdb_module): Add declaration.
 
 2020-01-13  Simon Marchi  <simon.marchi@efficios.com>
diff --git a/gdb/configure b/gdb/configure
index b572d41..aa53c09 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/ChangeLog b/gdb/gdbserver/ChangeLog
index 233bc62..bb0bc7a 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,5 +1,9 @@
 2020-01-13  Simon Marchi  <simon.marchi@efficios.com>
 
+	* configure: Re-generate.
+
+2020-01-13  Simon Marchi  <simon.marchi@efficios.com>
+
 	* tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
 	Define to static.
 	* tracepoint.c (stop_tracing, flush_trace_buffer,
diff --git a/gdb/gdbserver/configure b/gdb/gdbserver/configure
index 4de751b..f70b3d5 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 00bcdfa..e2b8a43 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*)



More information about the Gdb-cvs mailing list