]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[gdb] Fix -Wstrict-null-sentinel warnings
authorTom de Vries <tdevries@suse.de>
Mon, 10 Feb 2020 14:13:42 +0000 (15:13 +0100)
committerTom de Vries <tdevries@suse.de>
Mon, 10 Feb 2020 14:13:42 +0000 (15:13 +0100)
commit85f0dd3ce8b249638e00f9e43153b712705a3347
tree547a4613f5a0a95c2bdd9ec0eadcdf082bf24906
parent44f6938ead9cfadecd705dbd30fa177fac1330ad
[gdb] Fix -Wstrict-null-sentinel warnings

When passed in CXXFLAGS, -Wstrict-null-sentinel triggers twice in a
gdb/gdbserver build.

Fix the two occurrences.

Build and reg-tested on x86_64-linux.

gdb/ChangeLog:

2020-02-10  Tom de Vries  <tdevries@suse.de>

* dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
sentinel to char *.

gdbsupport/ChangeLog:

2020-02-10  Tom de Vries  <tdevries@suse.de>

* environ.c (gdb_environ::set): Cast concat NULL sentinel to char *.
gdb/ChangeLog
gdb/dwarf2/read.c
gdbsupport/ChangeLog
gdbsupport/environ.c