Add -Wstrict-null-sentinel
Commit Message
Tom de Vries sent a patch to make gdb compile when
-Wstrict-null-sentinel. Simon recommended adding this to warning.m4.
That is what this patch does.
Tested by rebuilding on x86-64 Fedora 30.
gdb/ChangeLog
2020-02-11 Tom Tromey <tromey@adacore.com>
* configure: Rebuild.
* warning.m4 (AM_GDB_WARNINGS): Add -Wstrict-null-sentinel.
gdbserver/ChangeLog
2020-02-11 Tom Tromey <tromey@adacore.com>
* configure: Rebuild for -Wstrict-null-sentinel.
Change-Id: I0292304411e19283e877e420958970a19198ab07
---
gdb/ChangeLog | 5 +++++
gdb/configure | 3 ++-
gdb/warning.m4 | 3 ++-
gdbserver/ChangeLog | 4 ++++
gdbserver/configure | 3 ++-
5 files changed, 15 insertions(+), 3 deletions(-)
Comments
>>>>> "Tom" == Tom Tromey <tromey@adacore.com> writes:
Tom> Tom de Vries sent a patch to make gdb compile when
Tom> -Wstrict-null-sentinel. Simon recommended adding this to warning.m4.
Tom> That is what this patch does.
Simon did exactly this in a different series, so I'm dropping this one.
Tom
@@ -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*)
@@ -50,7 +50,8 @@ build_warnings="-Wall -Wpointer-arith \
-Wdeprecated-copy \
-Wdeprecated-copy-dtor \
-Wredundant-move \
--Wmissing-declarations"
+-Wmissing-declarations \
+-Wstrict-null-sentinel"
case "${host}" in
*-*-mingw32*)
@@ -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*)