From: Cong Ding Date: Mon, 3 Dec 2012 10:24:54 +0000 (+0000) Subject: tools:virtio: fix compilation warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4a7d6455b07845d92e025da222f11de519f90def;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git 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 Signed-off-by: Michael S. Tsirkin --- diff --git a/tools/virtio/virtio_test.c b/tools/virtio/virtio_test.c index e626fa553c5a..6d25dcd2e97a 100644 --- a/tools/virtio/virtio_test.c +++ b/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]"