Add -Wunused-but-set-* to build
authorTom Tromey <tom@tromey.com>
Mon, 6 Jun 2016 18:56:42 +0000 (12:56 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 21 Jul 2016 19:07:23 +0000 (13:07 -0600)
This adds -Wunused-but-set-variable and -Wunused-but-set-parameter to
configure.

2016-07-21  Tom Tromey  <tom@tromey.com>

* configure: Rebuild.
* warning.m4 (AM_GDB_WARNINGS) <build_warnings>: Add
-Wunused-but-set-parameter, -Wunused-but-set-variable.

2016-07-21  Tom Tromey  <tom@tromey.com>

* configure: Rebuild.

gdb/ChangeLog
gdb/configure
gdb/gdbserver/ChangeLog
gdb/gdbserver/configure
gdb/warning.m4

index 47faef2054d996ad7cebac8b44cd8b452437171f..706c34d81da84cca28a760c98e6b45100c23732d 100644 (file)
@@ -1,3 +1,9 @@
+2016-07-21  Tom Tromey  <tom@tromey.com>
+
+       * configure: Rebuild.
+       * warning.m4 (AM_GDB_WARNINGS) <build_warnings>: Add
+       -Wunused-but-set-parameter, -Wunused-but-set-variable.
+
 2016-07-21  Pedro Alves  <palves@redhat.com>
 
        * go32-nat.c (go32_create_inferior): Add cast.
index 81a037a9cb22b809cb72ff26fb9221a0fdfa07a6..43d207c788f2f61050a55b27e44845bc8a8cbad2 100755 (executable)
@@ -14256,7 +14256,7 @@ fi
 build_warnings="-Wall -Wpointer-arith \
 -Wno-unused -Wunused-value -Wunused-function \
 -Wno-switch -Wno-char-subscripts \
--Wempty-body"
+-Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable"
 
 # Now add in C and C++ specific options, depending on mode.
 if test "$enable_build_with_cxx" = "yes"; then
index 41567905a8e692dbcd5565ea47d127b049296a37..349af82c7ebdb77a76f1e5901b2c48e39023d248 100644 (file)
@@ -1,3 +1,7 @@
+2016-07-21  Tom Tromey  <tom@tromey.com>
+
+       * configure: Rebuild.
+
 2016-07-21  Yao Qi  <yao.qi@linaro.org>
 
        * mem-break.c (find_gdb_breakpoint): Cast bp to
index 746218e3047094891a2c39a3e1a904fdf880dd11..2926deb51f6c5646e285b1a9224935c0cf76e77f 100755 (executable)
@@ -6291,7 +6291,7 @@ fi
 build_warnings="-Wall -Wpointer-arith \
 -Wno-unused -Wunused-value -Wunused-function \
 -Wno-switch -Wno-char-subscripts \
--Wempty-body"
+-Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable"
 
 # Now add in C and C++ specific options, depending on mode.
 if test "$enable_build_with_cxx" = "yes"; then
index 55f1eb362c9e0a9e64fcbdea90a1f0fec79ccbd1..8d7ce68ce3f3bef900af4caa9b3dedc0ae4e5cf2 100644 (file)
@@ -39,7 +39,7 @@ fi
 build_warnings="-Wall -Wpointer-arith \
 -Wno-unused -Wunused-value -Wunused-function \
 -Wno-switch -Wno-char-subscripts \
--Wempty-body"
+-Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable"
 
 # Now add in C and C++ specific options, depending on mode.
 if test "$enable_build_with_cxx" = "yes"; then
This page took 0.044687 seconds and 4 git commands to generate.