This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: A strange gcc behavior, and an argument against -Wno-unused
Since Michael has committed his patch meanwhile, in the
interest of moving a bit forward, how 'bout we give this a
try, then? No new warnings caught on an
'x86_64-linux --enable-targets=all' at -O2 build.
--
Pedro Alves
2009-10-13 Pedro Alves <pedro@codesourcery.com>
gdb/
* configure.ac (build_warnings): Add -Wunused-value.
* configure: Regenerate.
---
gdb/configure | 2 +-
gdb/configure.ac | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Index: src/gdb/configure.ac
===================================================================
--- src.orig/gdb/configure.ac 2009-10-11 15:53:33.000000000 +0100
+++ src/gdb/configure.ac 2009-10-11 15:54:10.000000000 +0100
@@ -1542,7 +1542,7 @@ fi
# gdb/doc/gdbint.texinfo.
build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
-Wformat-nonliteral -Wno-pointer-sign \
--Wno-unused -Wno-switch -Wno-char-subscripts"
+-Wno-unused -Wunused-value -Wno-switch -Wno-char-subscripts"
# Enable -Wno-format by default when using gcc on mingw since many
# GCC versions complain about %I64.
Index: src/gdb/configure
===================================================================
--- src.orig/gdb/configure 2009-10-11 15:53:33.000000000 +0100
+++ src/gdb/configure 2009-10-11 15:54:10.000000000 +0100
@@ -13117,7 +13117,7 @@ fi
# gdb/doc/gdbint.texinfo.
build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
-Wformat-nonliteral -Wno-pointer-sign \
--Wno-unused -Wno-switch -Wno-char-subscripts"
+-Wno-unused -Wunused-value -Wno-switch -Wno-char-subscripts"
# Enable -Wno-format by default when using gcc on mingw since many
# GCC versions complain about %I64.