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)".
This commit is contained in:
Tom Tromey
2013-07-01 19:52:32 +00:00
parent 44d100c3b9
commit dd9aa0484e
5 changed files with 13 additions and 4 deletions

View File

@@ -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");
}