Add new GCC 9 warnings to warnings.m4
Commit Message
GCC 9 has a few new warnings that aren't enabled in the gdb build by
default: -Wdeprecated-copy, -Winit-list-lifetime, and
-Wredundant-move. This patch enables them all.
Tested by rebuilding with a new GCC (git master) on x86-64 Fedora 29.
gdb/ChangeLog
2019-05-10 Tom Tromey <tromey@adacore.com>
* configure: Rebuild.
* warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
-Winit-list-lifetime, -Wredundant-move.
gdb/gdbserver/ChangeLog
2019-05-10 Tom Tromey <tromey@adacore.com>
* configure: Rebuild.
---
gdb/ChangeLog | 6 ++++++
gdb/configure | 5 ++++-
gdb/gdbserver/ChangeLog | 4 ++++
gdb/gdbserver/configure | 5 ++++-
gdb/warning.m4 | 5 ++++-
5 files changed, 22 insertions(+), 3 deletions(-)
@@ -15436,7 +15436,10 @@ build_warnings="-Wall -Wpointer-arith \
-Wsuggest-override \
-Wimplicit-fallthrough=3 \
-Wduplicated-cond \
--Wshadow=local"
+-Wshadow=local \
+-Wdeprecated-copy \
+-Winit-list-lifetime \
+-Wredundant-move"
case "${host}" in
*-*-mingw32*)
@@ -7271,7 +7271,10 @@ build_warnings="-Wall -Wpointer-arith \
-Wsuggest-override \
-Wimplicit-fallthrough=3 \
-Wduplicated-cond \
--Wshadow=local"
+-Wshadow=local \
+-Wdeprecated-copy \
+-Winit-list-lifetime \
+-Wredundant-move"
case "${host}" in
*-*-mingw32*)
@@ -46,7 +46,10 @@ build_warnings="-Wall -Wpointer-arith \
-Wsuggest-override \
-Wimplicit-fallthrough=3 \
-Wduplicated-cond \
--Wshadow=local"
+-Wshadow=local \
+-Wdeprecated-copy \
+-Winit-list-lifetime \
+-Wredundant-move"
case "${host}" in
*-*-mingw32*)