summaryrefslogtreecommitdiff
path: root/gdb/configure
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-07-01 19:52:32 +0000
committerTom Tromey <tromey@redhat.com>2013-07-01 19:52:32 +0000
commit7dcd90c69d0fc2b24af4f43b00705a976191d03e (patch)
tree7462d7601e8f8a57c7922f9d3a3c4f32603fb7f4 /gdb/configure
parent132367bed08c96d95cb941601470e708a8469ab9 (diff)
downloadgdb-7dcd90c69d0fc2b24af4f43b00705a976191d03e.tar.gz
add -Wold-style-definition
This adds -Wold-style-definition to gdb's list of warnings. This found a couple of spots where "()" was used where "(void)" is more correct. Tested by rebuilding on x86-64 Fedora 18. * configure.ac (build_warnings): Add -Wold-style-definition. * configure: Rebuild. * machoread.c (_initialize_machoread): Use "(void)". * macrocmd.c (macro_inform_no_debuginfo): Fix formatting; use "(void)".
Diffstat (limited to 'gdb/configure')
-rwxr-xr-xgdb/configure2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/configure b/gdb/configure
index 7e08fba659e..822f2dfc282 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -12471,7 +12471,7 @@ build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
-Wno-unused -Wunused-value -Wunused-function \
-Wno-switch -Wno-char-subscripts -Wmissing-prototypes \
-Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
--Wold-style-declaration"
+-Wold-style-declaration -Wold-style-definition"
# Enable -Wno-format by default when using gcc on mingw since many
# GCC versions complain about %I64.