aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2020-02-11 10:51:49 -0500
committerSimon Marchi <simon.marchi@efficios.com>2020-02-11 10:51:49 -0500
commit8ddd8e0ed83ce09671695540788645e54b2b09a5 (patch)
treefcf2901f171d0d955fb334732b586c7ca4f72be8
parent58df732b2166c31c8ee868b95cb62ef232e25387 (diff)
downloadbinutils-8ddd8e0ed83ce09671695540788645e54b2b09a5.zip
binutils-8ddd8e0ed83ce09671695540788645e54b2b09a5.tar.gz
binutils-8ddd8e0ed83ce09671695540788645e54b2b09a5.tar.bz2
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.
-rw-r--r--gdb/ChangeLog4
-rwxr-xr-xgdb/configure3
-rw-r--r--gdbserver/ChangeLog4
-rwxr-xr-xgdbserver/configure3
-rw-r--r--gdbsupport/ChangeLog5
-rwxr-xr-xgdbsupport/configure3
-rw-r--r--gdbsupport/warning.m44
7 files changed, 22 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index fcb7980..d856a52 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2020-02-11 Simon Marchi <simon.marchi@efficios.com>
+ * configure: Re-generate.
+
+2020-02-11 Simon Marchi <simon.marchi@efficios.com>
+
* acinclude: Update warning.m4 path.
* warning.m4: Move to gdbsupport.
diff --git a/gdb/configure b/gdb/configure
index a1d1506..2ce910c 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 05620af..da6ccc4 100644
--- a/gdbserver/ChangeLog
+++ b/gdbserver/ChangeLog
@@ -1,5 +1,9 @@
2020-02-11 Simon Marchi <simon.marchi@efficios.com>
+ * configure: Re-generate.
+
+2020-02-11 Simon Marchi <simon.marchi@efficios.com>
+
* acinclude.m4: Update warning.m4 path.
2020-02-09 Hannes Domani <ssbssa@yahoo.de>
diff --git a/gdbserver/configure b/gdbserver/configure
index 4b9d7e3..bd0e667 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 f03bb34..676cb66 100644
--- a/gdbsupport/ChangeLog
+++ b/gdbsupport/ChangeLog
@@ -1,5 +1,10 @@
2020-02-11 Simon Marchi <simon.marchi@efficios.com>
+ * warning.m4: Add -Wstrict-null-sentinel.
+ * configure: Re-generate.
+
+2020-02-11 Simon Marchi <simon.marchi@efficios.com>
+
* warning.m4: Move here, from gdb/warning.m4.
* acinclude.m4: Update warning.m4 path.
* Makefile.in: Re-generate.
diff --git a/gdbsupport/configure b/gdbsupport/configure
index 197749b..1f7d72c 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 e2b8a43..81939ed 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*)