mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
build: avoid compiler warning on non-Linux
Detected by autobuild.sh when cross-building for mingw. Introduced in commits ce76e85 and af35cec. * src/nodeinfo.c (nodeGetCPUStats, nodeGetMemoryStats): Mark parameters as potentially unused.
This commit is contained in:
parent
9fbfcd3b44
commit
a1df7054ce
@ -636,9 +636,9 @@ int nodeGetInfo(virConnectPtr conn ATTRIBUTE_UNUSED, virNodeInfoPtr nodeinfo) {
|
||||
}
|
||||
|
||||
int nodeGetCPUStats(virConnectPtr conn ATTRIBUTE_UNUSED,
|
||||
int cpuNum,
|
||||
virCPUStatsPtr params,
|
||||
int *nparams,
|
||||
int cpuNum ATTRIBUTE_UNUSED,
|
||||
virCPUStatsPtr params ATTRIBUTE_UNUSED,
|
||||
int *nparams ATTRIBUTE_UNUSED,
|
||||
unsigned int flags)
|
||||
{
|
||||
virCheckFlags(0, -1);
|
||||
@ -665,9 +665,9 @@ int nodeGetCPUStats(virConnectPtr conn ATTRIBUTE_UNUSED,
|
||||
}
|
||||
|
||||
int nodeGetMemoryStats(virConnectPtr conn ATTRIBUTE_UNUSED,
|
||||
int cellNum,
|
||||
virMemoryStatsPtr params,
|
||||
int *nparams,
|
||||
int cellNum ATTRIBUTE_UNUSED,
|
||||
virMemoryStatsPtr params ATTRIBUTE_UNUSED,
|
||||
int *nparams ATTRIBUTE_UNUSED,
|
||||
unsigned int flags)
|
||||
{
|
||||
virCheckFlags(0, -1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user