[v2,7/7] Enable -Wmissing-declarations diagnostic
Commit Message
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(-)
Comments
On 2020-01-10 5:00 p.m., Simon Marchi wrote:
> 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.
This is missing the ChangeLog entry for gdbserver, I've updated
it locally.
Simon
@@ -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*)
@@ -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*)
@@ -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*)