Skip to contentSkip to conversation

tools:virtio: fix compilation warning

PATCH Applied Cong Ding 2 participants 2 messages Dec 3, 2012 virtio core

lore
Share & tools
lore

Cong Ding

author
#0 lore raw

PATCH 1/1 tools:virtio: fix compilation warning

We do not allow old-style function definition. Always spell foo(void) if a function does not take any parameters.

---
 tools/virtio/virtio_test.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
tools/virtio/virtio_test.c +1 -1
index e626fa5..6d25dcd 100644
@@ -232,7 +232,7 @@ const struct option longopts[] = {
 	}
 };
 
-static void help()
+static void help(void)
 {
 	fprintf(stderr, "Usage: virtio_test [--help]"
 		" [--no-indirect]"
Signature · 1 line
1.7.4.5
maintainer Applied
#1 lore raw
Quoted 4 lines · Cong Ding

We do not allow old-style function definition. Always spell foo(void) if a function does not take any parameters.

Thanks, applied.

Quoted 19 lines
---
 tools/virtio/virtio_test.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
tools/virtio/virtio_test.c +1 -1
index e626fa5..6d25dcd 100644
@@ -232,7 +232,7 @@ const struct option longopts[] = {
 	}
 };
 
-static void help()
+static void help(void)
 {
 	fprintf(stderr, "Usage: virtio_test [--help]"
 		" [--no-indirect]"
Signature · 1 line
1.7.4.5