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.
This commit is contained in:
Simon Marchi 2020-02-11 10:51:49 -05:00
parent 58df732b21
commit 8ddd8e0ed8
7 changed files with 22 additions and 4 deletions

View File

@ -1,3 +1,7 @@
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.

3
gdb/configure vendored
View File

@ -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*)

View File

@ -1,3 +1,7 @@
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.

3
gdbserver/configure vendored
View File

@ -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*)

View File

@ -1,3 +1,8 @@
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.

View File

@ -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*)

View File

@ -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*)