Explorar o código

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 <dinggnu@gmail.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Cong Ding %!s(int64=13) %!d(string=hai) anos
pai
achega
4a7d6455b0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tools/virtio/virtio_test.c

+ 1 - 1
tools/virtio/virtio_test.c

@@ -232,7 +232,7 @@ const struct option longopts[] = {
 	}
 };
 
-static void help()
+static void help(void)
 {
 	fprintf(stderr, "Usage: virtio_test [--help]"
 		" [--no-indirect]"