From: Simon Marchi Date: Tue, 11 Feb 2020 15:51:49 +0000 (-0500) Subject: Add -Wstrict-null-sentinel to gdbsupport/warning.m4 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8ddd8e0ed83ce09671695540788645e54b2b09a5;p=binutils-gdb.git Add -Wstrict-null-sentinel to gdbsupport/warning.m4 Commit 85f0dd3ce ("[gdb] Fix -Wstrict-null-sentinel warnings") fixed some violations of -Wstrict-null-sentinel. If we want to enforce this warning, I think we should enable it in our warning.m4 file. gdbsupport/ChangeLog: * warning.m4: Add -Wstrict-null-sentinel. * configure: Re-generate. gdbserver/ChangeLog: * configure: Re-generate. gdb/ChangeLog: * configure: Re-generate. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index fcb7980c367..d856a523b8d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2020-02-11 Simon Marchi + + * configure: Re-generate. + 2020-02-11 Simon Marchi * acinclude: Update warning.m4 path. diff --git a/gdb/configure b/gdb/configure index a1d15064972..2ce910c808c 100755 --- a/gdb/configure +++ b/gdb/configure @@ -16111,7 +16111,8 @@ build_warnings="-Wall -Wpointer-arith \ -Wdeprecated-copy \ -Wdeprecated-copy-dtor \ -Wredundant-move \ --Wmissing-declarations" +-Wmissing-declarations \ +-Wstrict-null-sentinel" case "${host}" in *-*-mingw32*) diff --git a/gdbserver/ChangeLog b/gdbserver/ChangeLog index 05620affa92..da6ccc4df60 100644 --- a/gdbserver/ChangeLog +++ b/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2020-02-11 Simon Marchi + + * configure: Re-generate. + 2020-02-11 Simon Marchi * acinclude.m4: Update warning.m4 path. diff --git a/gdbserver/configure b/gdbserver/configure index 4b9d7e3718f..bd0e667af69 100755 --- a/gdbserver/configure +++ b/gdbserver/configure @@ -9815,7 +9815,8 @@ build_warnings="-Wall -Wpointer-arith \ -Wdeprecated-copy \ -Wdeprecated-copy-dtor \ -Wredundant-move \ --Wmissing-declarations" +-Wmissing-declarations \ +-Wstrict-null-sentinel" case "${host}" in *-*-mingw32*) diff --git a/gdbsupport/ChangeLog b/gdbsupport/ChangeLog index f03bb34bac1..676cb66aa0a 100644 --- a/gdbsupport/ChangeLog +++ b/gdbsupport/ChangeLog @@ -1,3 +1,8 @@ +2020-02-11 Simon Marchi + + * warning.m4: Add -Wstrict-null-sentinel. + * configure: Re-generate. + 2020-02-11 Simon Marchi * warning.m4: Move here, from gdb/warning.m4. diff --git a/gdbsupport/configure b/gdbsupport/configure index 197749b5d0c..1f7d72cc585 100755 --- a/gdbsupport/configure +++ b/gdbsupport/configure @@ -10853,7 +10853,8 @@ build_warnings="-Wall -Wpointer-arith \ -Wdeprecated-copy \ -Wdeprecated-copy-dtor \ -Wredundant-move \ --Wmissing-declarations" +-Wmissing-declarations \ +-Wstrict-null-sentinel" case "${host}" in *-*-mingw32*) diff --git a/gdbsupport/warning.m4 b/gdbsupport/warning.m4 index e2b8a43ddbd..81939ed7610 100644 --- a/gdbsupport/warning.m4 +++ b/gdbsupport/warning.m4 @@ -50,7 +50,9 @@ build_warnings="-Wall -Wpointer-arith \ -Wdeprecated-copy \ -Wdeprecated-copy-dtor \ -Wredundant-move \ --Wmissing-declarations" +-Wmissing-declarations \ +-Wstrict-null-sentinel \ +" case "${host}" in *-*-mingw32*)