From: Cole Robinson Date: Mon, 18 Mar 2019 16:40:03 +0000 (-0400) Subject: tests: domaincapstest: Fix build on mingw X-Git-Tag: v5.2.0-rc1~121 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7cd63604cf2bcf2231b6ca4ee5d29233d5caa23a;p=thirdparty%2Flibvirt.git tests: domaincapstest: Fix build on mingw fillStringValues is only used if WITH_QEMU || WITH_BHYVE Signed-off-by: Cole Robinson --- diff --git a/tests/domaincapstest.c b/tests/domaincapstest.c index 1aa8c023a2..2cccfbc8e2 100644 --- a/tests/domaincapstest.c +++ b/tests/domaincapstest.c @@ -24,6 +24,7 @@ #define VIR_FROM_THIS VIR_FROM_NONE +#if WITH_QEMU || WITH_BHYVE static int ATTRIBUTE_SENTINEL fillStringValues(virDomainCapsStringValuesPtr values, ...) { @@ -44,6 +45,7 @@ fillStringValues(virDomainCapsStringValuesPtr values, ...) return ret; } +#endif /* WITH_QEMU || WITH_BHYVE */ #if WITH_QEMU # include "testutilsqemu.h"