]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: fix CPUID detection tests compilation failure
authorWei Liu <wei.liu2@citrix.com>
Mon, 13 Jun 2016 09:11:41 +0000 (10:11 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 13 Jun 2016 10:19:53 +0000 (12:19 +0200)
In 3704b9003 ("tests: Add CPU detection tests"), a macro called
DO_TEST_CPUID_JSON is added. But it took only two arguments when QEMU
or YAJL is not set.

Fix it by adding a third argument. Shouldn't have any effect because
that macro compiles to nothing.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
tests/cputest.c

index f68a3ec8f17c24e8be37758b1d298d1137ce3cac..c374ddf5ecb739390aa796a749fb8dd608f8bd38 100644 (file)
@@ -700,7 +700,7 @@ mymain(void)
         }                                                               \
     } while (0)
 #else
-# define DO_TEST_CPUID_JSON(arch, host)
+# define DO_TEST_CPUID_JSON(arch, host, json)
 #endif
 
 #define DO_TEST_CPUID(arch, host, json)                                 \