diff options
author | Jim Meyering <meyering@redhat.com> | 2009-08-10 12:17:00 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-08-10 12:49:22 +0200 |
commit | 92ac2400a326256ef819e0195d7ecfa7f03645be (patch) | |
tree | 392b9fc6283a14664fa24ee2f67241f817283346 | |
parent | 98869b86413ff59afa009f9d06ebc0cc4477ab31 (diff) | |
download | libguestfs-92ac2400a326256ef819e0195d7ecfa7f03645be.tar.gz libguestfs-92ac2400a326256ef819e0195d7ecfa7f03645be.tar.xz libguestfs-92ac2400a326256ef819e0195d7ecfa7f03645be.zip |
build: daemon/do_debug: parameters aren't always unused
* daemon/debug.c (MAYBE_UNUSED): Define.
(do_debug): Mark parameters as unused only when they really
are unused. Spotted by Richard Jones.
SCALAR(0xdd8370)
prefer sizeof *VAR sizeof TYPE (no semantic change)
-rw-r--r-- | daemon/debug.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/daemon/debug.c b/daemon/debug.c index 5b3b5faa..5083398a 100644 --- a/daemon/debug.c +++ b/daemon/debug.c @@ -60,8 +60,14 @@ static struct cmd cmds[] = { }; #endif +#if ! ENABLE_DEBUG_COMMAND +# define MAYBE_UNUSED ATTRIBUTE_UNUSED +#else +# define MAYBE_UNUSED /* empty */ +#endif + char * -do_debug (char *subcmd ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) +do_debug (char *subcmd MAYBE_UNUSED, char **argv MAYBE_UNUSED) { #if ENABLE_DEBUG_COMMAND int argc, i; |