cpu: use G_GNUC_UNUSED

Use G_GNUC_UNUSED from GLib instead of ATTRIBUTE_UNUSED.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Ján Tomko 2019-10-14 14:45:33 +02:00
parent ca15e6b6c1
commit 670d339e87
4 changed files with 17 additions and 17 deletions

View File

@ -71,10 +71,10 @@ virCPUarmUpdate(virCPUDefPtr guest,
static virCPUDefPtr
virCPUarmBaseline(virCPUDefPtr *cpus,
unsigned int ncpus ATTRIBUTE_UNUSED,
virDomainCapsCPUModelsPtr models ATTRIBUTE_UNUSED,
const char **features ATTRIBUTE_UNUSED,
bool migratable ATTRIBUTE_UNUSED)
unsigned int ncpus G_GNUC_UNUSED,
virDomainCapsCPUModelsPtr models G_GNUC_UNUSED,
const char **features G_GNUC_UNUSED,
bool migratable G_GNUC_UNUSED)
{
virCPUDefPtr cpu = NULL;
@ -91,9 +91,9 @@ virCPUarmBaseline(virCPUDefPtr *cpus,
}
static virCPUCompareResult
virCPUarmCompare(virCPUDefPtr host ATTRIBUTE_UNUSED,
virCPUDefPtr cpu ATTRIBUTE_UNUSED,
bool failMessages ATTRIBUTE_UNUSED)
virCPUarmCompare(virCPUDefPtr host G_GNUC_UNUSED,
virCPUDefPtr cpu G_GNUC_UNUSED,
bool failMessages G_GNUC_UNUSED)
{
return VIR_CPU_COMPARE_IDENTICAL;
}

View File

@ -276,7 +276,7 @@ ppc64MapFree(struct ppc64_map *map)
}
static int
ppc64VendorParse(xmlXPathContextPtr ctxt ATTRIBUTE_UNUSED,
ppc64VendorParse(xmlXPathContextPtr ctxt G_GNUC_UNUSED,
const char *name,
void *data)
{
@ -678,7 +678,7 @@ virCPUppc64GetHost(virCPUDefPtr cpu,
static int
virCPUppc64Update(virCPUDefPtr guest,
const virCPUDef *host ATTRIBUTE_UNUSED)
const virCPUDef *host G_GNUC_UNUSED)
{
/*
* - host-passthrough doesn't even get here
@ -697,9 +697,9 @@ virCPUppc64Update(virCPUDefPtr guest,
static virCPUDefPtr
virCPUppc64Baseline(virCPUDefPtr *cpus,
unsigned int ncpus,
virDomainCapsCPUModelsPtr models ATTRIBUTE_UNUSED,
const char **features ATTRIBUTE_UNUSED,
bool migratable ATTRIBUTE_UNUSED)
virDomainCapsCPUModelsPtr models G_GNUC_UNUSED,
const char **features G_GNUC_UNUSED,
bool migratable G_GNUC_UNUSED)
{
struct ppc64_map *map;
const struct ppc64_model *model;

View File

@ -31,9 +31,9 @@
static const virArch archs[] = { VIR_ARCH_S390, VIR_ARCH_S390X };
static virCPUCompareResult
virCPUs390Compare(virCPUDefPtr host ATTRIBUTE_UNUSED,
virCPUDefPtr cpu ATTRIBUTE_UNUSED,
bool failMessages ATTRIBUTE_UNUSED)
virCPUs390Compare(virCPUDefPtr host G_GNUC_UNUSED,
virCPUDefPtr cpu G_GNUC_UNUSED,
bool failMessages G_GNUC_UNUSED)
{
/* s390 relies on QEMU to perform all runability checking. Return
* VIR_CPU_COMPARE_IDENTICAL to bypass Libvirt checking.

View File

@ -3397,7 +3397,7 @@ virCPUx86FeatureIsMSR(const char *name)
*/
bool
virCPUx86FeatureFilterSelectMSR(const char *name,
void *opaque ATTRIBUTE_UNUSED)
void *opaque G_GNUC_UNUSED)
{
return virCPUx86FeatureIsMSR(name);
}
@ -3413,7 +3413,7 @@ virCPUx86FeatureFilterSelectMSR(const char *name,
*/
bool
virCPUx86FeatureFilterDropMSR(const char *name,
void *opaque ATTRIBUTE_UNUSED)
void *opaque G_GNUC_UNUSED)
{
return !virCPUx86FeatureIsMSR(name);
}