Enable -Wmissing-declarations diagnostic
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 13 Jan 2020 19:05:44 +0000 (14:05 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 13 Jan 2020 19:06:09 +0000 (14:06 -0500)
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

gdb/ChangeLog
gdb/configure
gdb/gdbserver/ChangeLog
gdb/gdbserver/configure
gdb/warning.m4

index f2992f17844bbac7d1c58bb33fe1c78cdf24ad7a..ea5352dfd0d9c074d84b51cfb5eec605afadfa79 100644 (file)
@@ -1,3 +1,8 @@
+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.
index b572d414ca514a966f6b35a3cec34a16f6cd7fa7..aa53c097ca8f659e01266ece84f34dd679c76bf0 100755 (executable)
@@ -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*)
index 233bc621369e62538d10fdb6a0f92f201c42236b..bb0bc7a6c355cfb1ebb5fc5237a4374fb0751309 100644 (file)
@@ -1,3 +1,7 @@
+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]:
index 4de751b449153732f62cc254fd07a7047568fa68..f70b3d55215618af47d82a1df1fbce1f1fa15b07 100755 (executable)
@@ -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*)
index 00bcdfa7ea505b9117f651f1174b7b8adc7d4ba0..e2b8a43ddbd54b5900e388f3265b781ae241bf95 100644 (file)
@@ -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*)