aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaine Stump <laine@laine.org>2012-03-07 13:16:53 -0500
committerLaine Stump <laine@laine.org>2012-03-07 13:19:38 -0500
commit861707b9405bf8921d07659889d55b3ceebe5d31 (patch)
tree2d58e3531e91d048079485c65a7b8fb941a673ec /src
parentrpc: allow truncated return for virDomainGetCPUStats (diff)
downloadlibvirt-861707b9405bf8921d07659889d55b3ceebe5d31.tar.gz
libvirt-861707b9405bf8921d07659889d55b3ceebe5d31.tar.bz2
libvirt-861707b9405bf8921d07659889d55b3ceebe5d31.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/util/pci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/pci.c b/src/util/pci.c
index c8a5287ec..a6212f291 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"));