* [PATCH] Add -Wstrict-null-sentinel
@ 2020-02-11 14:49 Tom Tromey
2020-02-11 14:57 ` Tom Tromey
0 siblings, 1 reply; 2+ messages in thread
From: Tom Tromey @ 2020-02-11 14:49 UTC (permalink / raw)
To: gdb-patches; +Cc: Tom Tromey
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(-)
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/gdb/warning.m4 b/gdb/warning.m4
index e2b8a43ddbd..75bc21ca426 100644
--- a/gdb/warning.m4
+++ b/gdb/warning.m4
@@ -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*)
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*)
--
2.21.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Add -Wstrict-null-sentinel
2020-02-11 14:49 [PATCH] Add -Wstrict-null-sentinel Tom Tromey
@ 2020-02-11 14:57 ` Tom Tromey
0 siblings, 0 replies; 2+ messages in thread
From: Tom Tromey @ 2020-02-11 14:57 UTC (permalink / raw)
To: Tom Tromey; +Cc: gdb-patches
>>>>> "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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-02-11 14:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-11 14:49 [PATCH] Add -Wstrict-null-sentinel Tom Tromey
2020-02-11 14:57 ` Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).