This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] sim: tweak usage() function definition
- From: Mike Frysinger <vapier at gentoo dot org>
- To: gdb-patches at sourceware dot org
- Date: Mon, 29 Mar 2010 15:38:37 -0400
- Subject: [PATCH] sim: tweak usage() function definition
GCC currently emits this warning:
nrun.c: In function 'usage':
nrun.c:223: warning: old-style function definition
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
2010-03-29 Mike Frysinger <vapier@gentoo.org>
* nrun.c (usage): Use void in definition.
sim/common/nrun.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/sim/common/nrun.c b/sim/common/nrun.c
index aad1d8c..e537849 100644
--- a/sim/common/nrun.c
+++ b/sim/common/nrun.c
@@ -219,7 +219,7 @@ main (int argc, char **argv)
}
static void
-usage ()
+usage (void)
{
fprintf (stderr, "Usage: %s [options] program [program args]\n", myname);
fprintf (stderr, "Run `%s --help' for full list of options.\n", myname);
--
1.7.0.2