diff options
author | Tom Tromey <tromey@redhat.com> | 2013-07-01 19:52:32 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-07-01 19:52:32 +0000 |
commit | dd9aa0484e0b935fcf90d12337779e56a31f9352 (patch) | |
tree | f83277282333fe3f75958ec0b934e43e092fc593 /gdb/machoread.c | |
parent | 44d100c3b90473c1995acaf74ee3a424aedb9701 (diff) | |
download | gdb-dd9aa0484e0b935fcf90d12337779e56a31f9352.zip gdb-dd9aa0484e0b935fcf90d12337779e56a31f9352.tar.gz gdb-dd9aa0484e0b935fcf90d12337779e56a31f9352.tar.bz2 |
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/machoread.c')
-rw-r--r-- | gdb/machoread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/machoread.c b/gdb/machoread.c index 8d45f6f..b56e21c 100644 --- a/gdb/machoread.c +++ b/gdb/machoread.c @@ -1037,7 +1037,7 @@ static const struct sym_fns macho_sym_fns = { extern initialize_file_ftype _initialize_machoread; void -_initialize_machoread () +_initialize_machoread (void) { add_symtab_fns (&macho_sym_fns); |