aboutsummaryrefslogtreecommitdiff
path: root/gdb/macrocmd.c
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
commitdd9aa0484e0b935fcf90d12337779e56a31f9352 (patch)
treef83277282333fe3f75958ec0b934e43e092fc593 /gdb/macrocmd.c
parent44d100c3b90473c1995acaf74ee3a424aedb9701 (diff)
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/macrocmd.c')
-rw-r--r--gdb/macrocmd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/macrocmd.c b/gdb/macrocmd.c
index 250a1f0642..b48c3c92cb 100644
--- a/gdb/macrocmd.c
+++ b/gdb/macrocmd.c
@@ -47,7 +47,8 @@ macro_command (char *arg, int from_tty)
/* Prints an informational message regarding the lack of macro information. */
-static void macro_inform_no_debuginfo()
+static void
+macro_inform_no_debuginfo (void)
{
puts_filtered ("GDB has no preprocessor macro information for that code.\n");
}