tools:virtio: fix compilation warning
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.
Signed-off-by Cong Ding <[email protected]>
--- tools/virtio/virtio_test.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
tools/virtio/virtio_test.c +1 -1
@@ -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
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.
Signed-off-by Cong Ding <[email protected]>
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@@ -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