From: Laine Stump Date: Wed, 7 Mar 2012 18:16:53 +0000 (-0500) Subject: util: fix build mingw (and all non-linux) build failure X-Git-Tag: v0.9.11-rc1~126 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=861707b9405bf8921d07659889d55b3ceebe5d31;p=thirdparty%2Flibvirt.git util: fix build mingw (and all non-linux) build failure ATTRIBUTE_UNUSED was accidentally forgotten on one arg of a stub function for functionality that's not present on non-linux platforms. This causes a non-linux build with --enable-compile-warnings=error to fail. --- diff --git a/src/util/pci.c b/src/util/pci.c index c8a5287ec5..a6212f291c 100644 --- a/src/util/pci.c +++ b/src/util/pci.c @@ -2219,7 +2219,8 @@ pciDeviceNetName(char *device_link_sysfs_path ATTRIBUTE_UNUSED, int pciDeviceGetVirtualFunctionInfo(const char *vf_sysfs_device_path ATTRIBUTE_UNUSED, - char **pfname, int *vf_index ATTRIBUTE_UNUSED) + char **pfname ATTRIBUTE_UNUSED, + int *vf_index ATTRIBUTE_UNUSED) { pciReportError(VIR_ERR_INTERNAL_ERROR, _("pciDeviceGetVirtualFunctionInfo " "is not supported on non-linux platforms"));