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>
#endif
static bool auditlog;
-int virAuditOpen(unsigned int audit_level ATTRIBUTE_UNUSED)
+int virAuditOpen(unsigned int audit_level G_GNUC_UNUSED)
{
#if WITH_AUDIT
if ((auditfd = audit_open()) < 0) {
const char *filename,
size_t linenr,
const char *funcname,
- const char *clienttty ATTRIBUTE_UNUSED,
- const char *clientaddr ATTRIBUTE_UNUSED,
- virAuditRecordType type ATTRIBUTE_UNUSED, bool success,
+ const char *clienttty G_GNUC_UNUSED,
+ const char *clientaddr G_GNUC_UNUSED,
+ virAuditRecordType type G_GNUC_UNUSED, bool success,
const char *fmt, ...)
{
VIR_AUTOFREE(char *) str = NULL;
int
-virCgroupNewPartition(const char *path ATTRIBUTE_UNUSED,
- bool create ATTRIBUTE_UNUSED,
- int controllers ATTRIBUTE_UNUSED,
- virCgroupPtr *group ATTRIBUTE_UNUSED)
+virCgroupNewPartition(const char *path G_GNUC_UNUSED,
+ bool create G_GNUC_UNUSED,
+ int controllers G_GNUC_UNUSED,
+ virCgroupPtr *group G_GNUC_UNUSED)
{
virReportSystemError(ENXIO, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupNewSelf(virCgroupPtr *group ATTRIBUTE_UNUSED)
+virCgroupNewSelf(virCgroupPtr *group G_GNUC_UNUSED)
{
virReportSystemError(ENXIO, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupNewDomainPartition(virCgroupPtr partition ATTRIBUTE_UNUSED,
- const char *driver ATTRIBUTE_UNUSED,
- const char *name ATTRIBUTE_UNUSED,
- bool create ATTRIBUTE_UNUSED,
- virCgroupPtr *group ATTRIBUTE_UNUSED)
+virCgroupNewDomainPartition(virCgroupPtr partition G_GNUC_UNUSED,
+ const char *driver G_GNUC_UNUSED,
+ const char *name G_GNUC_UNUSED,
+ bool create G_GNUC_UNUSED,
+ virCgroupPtr *group G_GNUC_UNUSED)
{
virReportSystemError(ENXIO, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupNewThread(virCgroupPtr domain ATTRIBUTE_UNUSED,
- virCgroupThreadName nameval ATTRIBUTE_UNUSED,
- int id ATTRIBUTE_UNUSED,
- bool create ATTRIBUTE_UNUSED,
- virCgroupPtr *group ATTRIBUTE_UNUSED)
+virCgroupNewThread(virCgroupPtr domain G_GNUC_UNUSED,
+ virCgroupThreadName nameval G_GNUC_UNUSED,
+ int id G_GNUC_UNUSED,
+ bool create G_GNUC_UNUSED,
+ virCgroupPtr *group G_GNUC_UNUSED)
{
virReportSystemError(ENXIO, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupNewDetect(pid_t pid ATTRIBUTE_UNUSED,
- int controllers ATTRIBUTE_UNUSED,
- virCgroupPtr *group ATTRIBUTE_UNUSED)
+virCgroupNewDetect(pid_t pid G_GNUC_UNUSED,
+ int controllers G_GNUC_UNUSED,
+ virCgroupPtr *group G_GNUC_UNUSED)
{
virReportSystemError(ENXIO, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupNewDetectMachine(const char *name ATTRIBUTE_UNUSED,
- const char *drivername ATTRIBUTE_UNUSED,
- pid_t pid ATTRIBUTE_UNUSED,
- int controllers ATTRIBUTE_UNUSED,
- char *machinename ATTRIBUTE_UNUSED,
- virCgroupPtr *group ATTRIBUTE_UNUSED)
+virCgroupNewDetectMachine(const char *name G_GNUC_UNUSED,
+ const char *drivername G_GNUC_UNUSED,
+ pid_t pid G_GNUC_UNUSED,
+ int controllers G_GNUC_UNUSED,
+ char *machinename G_GNUC_UNUSED,
+ virCgroupPtr *group G_GNUC_UNUSED)
{
virReportSystemError(ENXIO, "%s",
_("Control groups not supported on this platform"));
}
-int virCgroupTerminateMachine(const char *name ATTRIBUTE_UNUSED)
+int virCgroupTerminateMachine(const char *name G_GNUC_UNUSED)
{
virReportSystemError(ENXIO, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupNewMachine(const char *name ATTRIBUTE_UNUSED,
- const char *drivername ATTRIBUTE_UNUSED,
- const unsigned char *uuid ATTRIBUTE_UNUSED,
- const char *rootdir ATTRIBUTE_UNUSED,
- pid_t pidleader ATTRIBUTE_UNUSED,
- bool isContainer ATTRIBUTE_UNUSED,
- size_t nnicindexes ATTRIBUTE_UNUSED,
- int *nicindexes ATTRIBUTE_UNUSED,
- const char *partition ATTRIBUTE_UNUSED,
- int controllers ATTRIBUTE_UNUSED,
- unsigned int maxthreads ATTRIBUTE_UNUSED,
- virCgroupPtr *group ATTRIBUTE_UNUSED)
+virCgroupNewMachine(const char *name G_GNUC_UNUSED,
+ const char *drivername G_GNUC_UNUSED,
+ const unsigned char *uuid G_GNUC_UNUSED,
+ const char *rootdir G_GNUC_UNUSED,
+ pid_t pidleader G_GNUC_UNUSED,
+ bool isContainer G_GNUC_UNUSED,
+ size_t nnicindexes G_GNUC_UNUSED,
+ int *nicindexes G_GNUC_UNUSED,
+ const char *partition G_GNUC_UNUSED,
+ int controllers G_GNUC_UNUSED,
+ unsigned int maxthreads G_GNUC_UNUSED,
+ virCgroupPtr *group G_GNUC_UNUSED)
{
virReportSystemError(ENXIO, "%s",
_("Control groups not supported on this platform"));
bool
-virCgroupHasController(virCgroupPtr cgroup ATTRIBUTE_UNUSED,
- int controller ATTRIBUTE_UNUSED)
+virCgroupHasController(virCgroupPtr cgroup G_GNUC_UNUSED,
+ int controller G_GNUC_UNUSED)
{
return false;
}
int
-virCgroupPathOfController(virCgroupPtr group ATTRIBUTE_UNUSED,
- unsigned int controller ATTRIBUTE_UNUSED,
- const char *key ATTRIBUTE_UNUSED,
- char **path ATTRIBUTE_UNUSED)
+virCgroupPathOfController(virCgroupPtr group G_GNUC_UNUSED,
+ unsigned int controller G_GNUC_UNUSED,
+ const char *key G_GNUC_UNUSED,
+ char **path G_GNUC_UNUSED)
{
virReportSystemError(ENXIO, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupAddProcess(virCgroupPtr group ATTRIBUTE_UNUSED,
- pid_t pid ATTRIBUTE_UNUSED)
+virCgroupAddProcess(virCgroupPtr group G_GNUC_UNUSED,
+ pid_t pid G_GNUC_UNUSED)
{
virReportSystemError(ENXIO, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupAddMachineProcess(virCgroupPtr group ATTRIBUTE_UNUSED,
- pid_t pid ATTRIBUTE_UNUSED)
+virCgroupAddMachineProcess(virCgroupPtr group G_GNUC_UNUSED,
+ pid_t pid G_GNUC_UNUSED)
{
virReportSystemError(ENXIO, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupAddThread(virCgroupPtr group ATTRIBUTE_UNUSED,
- pid_t pid ATTRIBUTE_UNUSED)
+virCgroupAddThread(virCgroupPtr group G_GNUC_UNUSED,
+ pid_t pid G_GNUC_UNUSED)
{
virReportSystemError(ENXIO, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupGetBlkioIoServiced(virCgroupPtr group ATTRIBUTE_UNUSED,
- long long *bytes_read ATTRIBUTE_UNUSED,
- long long *bytes_write ATTRIBUTE_UNUSED,
- long long *requests_read ATTRIBUTE_UNUSED,
- long long *requests_write ATTRIBUTE_UNUSED)
+virCgroupGetBlkioIoServiced(virCgroupPtr group G_GNUC_UNUSED,
+ long long *bytes_read G_GNUC_UNUSED,
+ long long *bytes_write G_GNUC_UNUSED,
+ long long *requests_read G_GNUC_UNUSED,
+ long long *requests_write G_GNUC_UNUSED)
{
virReportSystemError(ENXIO, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupGetBlkioIoDeviceServiced(virCgroupPtr group ATTRIBUTE_UNUSED,
- const char *path ATTRIBUTE_UNUSED,
- long long *bytes_read ATTRIBUTE_UNUSED,
- long long *bytes_write ATTRIBUTE_UNUSED,
- long long *requests_read ATTRIBUTE_UNUSED,
- long long *requests_write ATTRIBUTE_UNUSED)
+virCgroupGetBlkioIoDeviceServiced(virCgroupPtr group G_GNUC_UNUSED,
+ const char *path G_GNUC_UNUSED,
+ long long *bytes_read G_GNUC_UNUSED,
+ long long *bytes_write G_GNUC_UNUSED,
+ long long *requests_read G_GNUC_UNUSED,
+ long long *requests_write G_GNUC_UNUSED)
{
virReportSystemError(ENXIO, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupSetBlkioWeight(virCgroupPtr group ATTRIBUTE_UNUSED,
- unsigned int weight ATTRIBUTE_UNUSED)
+virCgroupSetBlkioWeight(virCgroupPtr group G_GNUC_UNUSED,
+ unsigned int weight G_GNUC_UNUSED)
{
virReportSystemError(ENXIO, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupGetBlkioWeight(virCgroupPtr group ATTRIBUTE_UNUSED,
- unsigned int *weight ATTRIBUTE_UNUSED)
+virCgroupGetBlkioWeight(virCgroupPtr group G_GNUC_UNUSED,
+ unsigned int *weight G_GNUC_UNUSED)
{
virReportSystemError(ENXIO, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupSetBlkioDeviceWeight(virCgroupPtr group ATTRIBUTE_UNUSED,
- const char *path ATTRIBUTE_UNUSED,
- unsigned int weight ATTRIBUTE_UNUSED)
+virCgroupSetBlkioDeviceWeight(virCgroupPtr group G_GNUC_UNUSED,
+ const char *path G_GNUC_UNUSED,
+ unsigned int weight G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
}
int
-virCgroupSetBlkioDeviceReadIops(virCgroupPtr group ATTRIBUTE_UNUSED,
- const char *path ATTRIBUTE_UNUSED,
- unsigned int riops ATTRIBUTE_UNUSED)
+virCgroupSetBlkioDeviceReadIops(virCgroupPtr group G_GNUC_UNUSED,
+ const char *path G_GNUC_UNUSED,
+ unsigned int riops G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
}
int
-virCgroupSetBlkioDeviceWriteIops(virCgroupPtr group ATTRIBUTE_UNUSED,
- const char *path ATTRIBUTE_UNUSED,
- unsigned int wiops ATTRIBUTE_UNUSED)
+virCgroupSetBlkioDeviceWriteIops(virCgroupPtr group G_GNUC_UNUSED,
+ const char *path G_GNUC_UNUSED,
+ unsigned int wiops G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
}
int
-virCgroupSetBlkioDeviceReadBps(virCgroupPtr group ATTRIBUTE_UNUSED,
- const char *path ATTRIBUTE_UNUSED,
- unsigned long long rbps ATTRIBUTE_UNUSED)
+virCgroupSetBlkioDeviceReadBps(virCgroupPtr group G_GNUC_UNUSED,
+ const char *path G_GNUC_UNUSED,
+ unsigned long long rbps G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
}
int
-virCgroupSetBlkioDeviceWriteBps(virCgroupPtr group ATTRIBUTE_UNUSED,
- const char *path ATTRIBUTE_UNUSED,
- unsigned long long wbps ATTRIBUTE_UNUSED)
+virCgroupSetBlkioDeviceWriteBps(virCgroupPtr group G_GNUC_UNUSED,
+ const char *path G_GNUC_UNUSED,
+ unsigned long long wbps G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
}
int
-virCgroupGetBlkioDeviceWeight(virCgroupPtr group ATTRIBUTE_UNUSED,
- const char *path ATTRIBUTE_UNUSED,
- unsigned int *weight ATTRIBUTE_UNUSED)
+virCgroupGetBlkioDeviceWeight(virCgroupPtr group G_GNUC_UNUSED,
+ const char *path G_GNUC_UNUSED,
+ unsigned int *weight G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
}
int
-virCgroupGetBlkioDeviceReadIops(virCgroupPtr group ATTRIBUTE_UNUSED,
- const char *path ATTRIBUTE_UNUSED,
- unsigned int *riops ATTRIBUTE_UNUSED)
+virCgroupGetBlkioDeviceReadIops(virCgroupPtr group G_GNUC_UNUSED,
+ const char *path G_GNUC_UNUSED,
+ unsigned int *riops G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
}
int
-virCgroupGetBlkioDeviceWriteIops(virCgroupPtr group ATTRIBUTE_UNUSED,
- const char *path ATTRIBUTE_UNUSED,
- unsigned int *wiops ATTRIBUTE_UNUSED)
+virCgroupGetBlkioDeviceWriteIops(virCgroupPtr group G_GNUC_UNUSED,
+ const char *path G_GNUC_UNUSED,
+ unsigned int *wiops G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
}
int
-virCgroupGetBlkioDeviceReadBps(virCgroupPtr group ATTRIBUTE_UNUSED,
- const char *path ATTRIBUTE_UNUSED,
- unsigned long long *rbps ATTRIBUTE_UNUSED)
+virCgroupGetBlkioDeviceReadBps(virCgroupPtr group G_GNUC_UNUSED,
+ const char *path G_GNUC_UNUSED,
+ unsigned long long *rbps G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
}
int
-virCgroupGetBlkioDeviceWriteBps(virCgroupPtr group ATTRIBUTE_UNUSED,
- const char *path ATTRIBUTE_UNUSED,
- unsigned long long *wbps ATTRIBUTE_UNUSED)
+virCgroupGetBlkioDeviceWriteBps(virCgroupPtr group G_GNUC_UNUSED,
+ const char *path G_GNUC_UNUSED,
+ unsigned long long *wbps G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
}
int
-virCgroupSetMemory(virCgroupPtr group ATTRIBUTE_UNUSED,
- unsigned long long kb ATTRIBUTE_UNUSED)
+virCgroupSetMemory(virCgroupPtr group G_GNUC_UNUSED,
+ unsigned long long kb G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupGetMemoryStat(virCgroupPtr group ATTRIBUTE_UNUSED,
- unsigned long long *cache ATTRIBUTE_UNUSED,
- unsigned long long *activeAnon ATTRIBUTE_UNUSED,
- unsigned long long *inactiveAnon ATTRIBUTE_UNUSED,
- unsigned long long *activeFile ATTRIBUTE_UNUSED,
- unsigned long long *inactiveFile ATTRIBUTE_UNUSED,
- unsigned long long *unevictable ATTRIBUTE_UNUSED)
+virCgroupGetMemoryStat(virCgroupPtr group G_GNUC_UNUSED,
+ unsigned long long *cache G_GNUC_UNUSED,
+ unsigned long long *activeAnon G_GNUC_UNUSED,
+ unsigned long long *inactiveAnon G_GNUC_UNUSED,
+ unsigned long long *activeFile G_GNUC_UNUSED,
+ unsigned long long *inactiveFile G_GNUC_UNUSED,
+ unsigned long long *unevictable G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupGetMemoryUsage(virCgroupPtr group ATTRIBUTE_UNUSED,
- unsigned long *kb ATTRIBUTE_UNUSED)
+virCgroupGetMemoryUsage(virCgroupPtr group G_GNUC_UNUSED,
+ unsigned long *kb G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupSetMemoryHardLimit(virCgroupPtr group ATTRIBUTE_UNUSED,
- unsigned long long kb ATTRIBUTE_UNUSED)
+virCgroupSetMemoryHardLimit(virCgroupPtr group G_GNUC_UNUSED,
+ unsigned long long kb G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupGetMemoryHardLimit(virCgroupPtr group ATTRIBUTE_UNUSED,
- unsigned long long *kb ATTRIBUTE_UNUSED)
+virCgroupGetMemoryHardLimit(virCgroupPtr group G_GNUC_UNUSED,
+ unsigned long long *kb G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupSetMemorySoftLimit(virCgroupPtr group ATTRIBUTE_UNUSED,
- unsigned long long kb ATTRIBUTE_UNUSED)
+virCgroupSetMemorySoftLimit(virCgroupPtr group G_GNUC_UNUSED,
+ unsigned long long kb G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupGetMemorySoftLimit(virCgroupPtr group ATTRIBUTE_UNUSED,
- unsigned long long *kb ATTRIBUTE_UNUSED)
+virCgroupGetMemorySoftLimit(virCgroupPtr group G_GNUC_UNUSED,
+ unsigned long long *kb G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupSetMemSwapHardLimit(virCgroupPtr group ATTRIBUTE_UNUSED,
- unsigned long long kb ATTRIBUTE_UNUSED)
+virCgroupSetMemSwapHardLimit(virCgroupPtr group G_GNUC_UNUSED,
+ unsigned long long kb G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupGetMemSwapHardLimit(virCgroupPtr group ATTRIBUTE_UNUSED,
- unsigned long long *kb ATTRIBUTE_UNUSED)
+virCgroupGetMemSwapHardLimit(virCgroupPtr group G_GNUC_UNUSED,
+ unsigned long long *kb G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupGetMemSwapUsage(virCgroupPtr group ATTRIBUTE_UNUSED,
- unsigned long long *kb ATTRIBUTE_UNUSED)
+virCgroupGetMemSwapUsage(virCgroupPtr group G_GNUC_UNUSED,
+ unsigned long long *kb G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupSetCpusetMems(virCgroupPtr group ATTRIBUTE_UNUSED,
- const char *mems ATTRIBUTE_UNUSED)
+virCgroupSetCpusetMems(virCgroupPtr group G_GNUC_UNUSED,
+ const char *mems G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupGetCpusetMems(virCgroupPtr group ATTRIBUTE_UNUSED,
- char **mems ATTRIBUTE_UNUSED)
+virCgroupGetCpusetMems(virCgroupPtr group G_GNUC_UNUSED,
+ char **mems G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupSetCpusetMemoryMigrate(virCgroupPtr group ATTRIBUTE_UNUSED,
- bool migrate ATTRIBUTE_UNUSED)
+virCgroupSetCpusetMemoryMigrate(virCgroupPtr group G_GNUC_UNUSED,
+ bool migrate G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupGetCpusetMemoryMigrate(virCgroupPtr group ATTRIBUTE_UNUSED,
- bool *migrate ATTRIBUTE_UNUSED)
+virCgroupGetCpusetMemoryMigrate(virCgroupPtr group G_GNUC_UNUSED,
+ bool *migrate G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupSetCpusetCpus(virCgroupPtr group ATTRIBUTE_UNUSED,
- const char *cpus ATTRIBUTE_UNUSED)
+virCgroupSetCpusetCpus(virCgroupPtr group G_GNUC_UNUSED,
+ const char *cpus G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupGetCpusetCpus(virCgroupPtr group ATTRIBUTE_UNUSED,
- char **cpus ATTRIBUTE_UNUSED)
+virCgroupGetCpusetCpus(virCgroupPtr group G_GNUC_UNUSED,
+ char **cpus G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
}
int
-virCgroupAllowAllDevices(virCgroupPtr group ATTRIBUTE_UNUSED,
- int perms ATTRIBUTE_UNUSED)
+virCgroupAllowAllDevices(virCgroupPtr group G_GNUC_UNUSED,
+ int perms G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
}
int
-virCgroupDenyAllDevices(virCgroupPtr group ATTRIBUTE_UNUSED)
+virCgroupDenyAllDevices(virCgroupPtr group G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupAllowDevice(virCgroupPtr group ATTRIBUTE_UNUSED,
- char type ATTRIBUTE_UNUSED,
- int major ATTRIBUTE_UNUSED,
- int minor ATTRIBUTE_UNUSED,
- int perms ATTRIBUTE_UNUSED)
+virCgroupAllowDevice(virCgroupPtr group G_GNUC_UNUSED,
+ char type G_GNUC_UNUSED,
+ int major G_GNUC_UNUSED,
+ int minor G_GNUC_UNUSED,
+ int perms G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupAllowDevicePath(virCgroupPtr group ATTRIBUTE_UNUSED,
- const char *path ATTRIBUTE_UNUSED,
- int perms ATTRIBUTE_UNUSED,
- bool ignoreEaccess ATTRIBUTE_UNUSED)
+virCgroupAllowDevicePath(virCgroupPtr group G_GNUC_UNUSED,
+ const char *path G_GNUC_UNUSED,
+ int perms G_GNUC_UNUSED,
+ bool ignoreEaccess G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupDenyDevice(virCgroupPtr group ATTRIBUTE_UNUSED,
- char type ATTRIBUTE_UNUSED,
- int major ATTRIBUTE_UNUSED,
- int minor ATTRIBUTE_UNUSED,
- int perms ATTRIBUTE_UNUSED)
+virCgroupDenyDevice(virCgroupPtr group G_GNUC_UNUSED,
+ char type G_GNUC_UNUSED,
+ int major G_GNUC_UNUSED,
+ int minor G_GNUC_UNUSED,
+ int perms G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupDenyDevicePath(virCgroupPtr group ATTRIBUTE_UNUSED,
- const char *path ATTRIBUTE_UNUSED,
- int perms ATTRIBUTE_UNUSED,
- bool ignoreEacces ATTRIBUTE_UNUSED)
+virCgroupDenyDevicePath(virCgroupPtr group G_GNUC_UNUSED,
+ const char *path G_GNUC_UNUSED,
+ int perms G_GNUC_UNUSED,
+ bool ignoreEacces G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupSetCpuShares(virCgroupPtr group ATTRIBUTE_UNUSED,
- unsigned long long shares ATTRIBUTE_UNUSED)
+virCgroupSetCpuShares(virCgroupPtr group G_GNUC_UNUSED,
+ unsigned long long shares G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupGetCpuShares(virCgroupPtr group ATTRIBUTE_UNUSED,
- unsigned long long *shares ATTRIBUTE_UNUSED)
+virCgroupGetCpuShares(virCgroupPtr group G_GNUC_UNUSED,
+ unsigned long long *shares G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupSetCpuCfsPeriod(virCgroupPtr group ATTRIBUTE_UNUSED,
- unsigned long long cfs_period ATTRIBUTE_UNUSED)
+virCgroupSetCpuCfsPeriod(virCgroupPtr group G_GNUC_UNUSED,
+ unsigned long long cfs_period G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupGetCpuCfsPeriod(virCgroupPtr group ATTRIBUTE_UNUSED,
- unsigned long long *cfs_period ATTRIBUTE_UNUSED)
+virCgroupGetCpuCfsPeriod(virCgroupPtr group G_GNUC_UNUSED,
+ unsigned long long *cfs_period G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupSetCpuCfsQuota(virCgroupPtr group ATTRIBUTE_UNUSED,
- long long cfs_quota ATTRIBUTE_UNUSED)
+virCgroupSetCpuCfsQuota(virCgroupPtr group G_GNUC_UNUSED,
+ long long cfs_quota G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupRemove(virCgroupPtr group ATTRIBUTE_UNUSED)
+virCgroupRemove(virCgroupPtr group G_GNUC_UNUSED)
{
virReportSystemError(ENXIO, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupKillRecursive(virCgroupPtr group ATTRIBUTE_UNUSED,
- int signum ATTRIBUTE_UNUSED)
+virCgroupKillRecursive(virCgroupPtr group G_GNUC_UNUSED,
+ int signum G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupKillPainfully(virCgroupPtr group ATTRIBUTE_UNUSED)
+virCgroupKillPainfully(virCgroupPtr group G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupGetCpuCfsQuota(virCgroupPtr group ATTRIBUTE_UNUSED,
- long long *cfs_quota ATTRIBUTE_UNUSED)
+virCgroupGetCpuCfsQuota(virCgroupPtr group G_GNUC_UNUSED,
+ long long *cfs_quota G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupGetCpuacctUsage(virCgroupPtr group ATTRIBUTE_UNUSED,
- unsigned long long *usage ATTRIBUTE_UNUSED)
+virCgroupGetCpuacctUsage(virCgroupPtr group G_GNUC_UNUSED,
+ unsigned long long *usage G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupGetCpuacctPercpuUsage(virCgroupPtr group ATTRIBUTE_UNUSED,
- char **usage ATTRIBUTE_UNUSED)
+virCgroupGetCpuacctPercpuUsage(virCgroupPtr group G_GNUC_UNUSED,
+ char **usage G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupGetCpuacctStat(virCgroupPtr group ATTRIBUTE_UNUSED,
- unsigned long long *user ATTRIBUTE_UNUSED,
- unsigned long long *sys ATTRIBUTE_UNUSED)
+virCgroupGetCpuacctStat(virCgroupPtr group G_GNUC_UNUSED,
+ unsigned long long *user G_GNUC_UNUSED,
+ unsigned long long *sys G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupGetDomainTotalCpuStats(virCgroupPtr group ATTRIBUTE_UNUSED,
- virTypedParameterPtr params ATTRIBUTE_UNUSED,
- int nparams ATTRIBUTE_UNUSED)
+virCgroupGetDomainTotalCpuStats(virCgroupPtr group G_GNUC_UNUSED,
+ virTypedParameterPtr params G_GNUC_UNUSED,
+ int nparams G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupSetFreezerState(virCgroupPtr group ATTRIBUTE_UNUSED,
- const char *state ATTRIBUTE_UNUSED)
+virCgroupSetFreezerState(virCgroupPtr group G_GNUC_UNUSED,
+ const char *state G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupGetFreezerState(virCgroupPtr group ATTRIBUTE_UNUSED,
- char **state ATTRIBUTE_UNUSED)
+virCgroupGetFreezerState(virCgroupPtr group G_GNUC_UNUSED,
+ char **state G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupBindMount(virCgroupPtr group ATTRIBUTE_UNUSED,
- const char *oldroot ATTRIBUTE_UNUSED,
- const char *mountopts ATTRIBUTE_UNUSED)
+virCgroupBindMount(virCgroupPtr group G_GNUC_UNUSED,
+ const char *oldroot G_GNUC_UNUSED,
+ const char *mountopts G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
bool
-virCgroupSupportsCpuBW(virCgroupPtr cgroup ATTRIBUTE_UNUSED)
+virCgroupSupportsCpuBW(virCgroupPtr cgroup G_GNUC_UNUSED)
{
VIR_DEBUG("Control groups not supported on this platform");
return false;
int
-virCgroupGetPercpuStats(virCgroupPtr group ATTRIBUTE_UNUSED,
- virTypedParameterPtr params ATTRIBUTE_UNUSED,
- unsigned int nparams ATTRIBUTE_UNUSED,
- int start_cpu ATTRIBUTE_UNUSED,
- unsigned int ncpus ATTRIBUTE_UNUSED,
- virBitmapPtr guestvcpus ATTRIBUTE_UNUSED)
+virCgroupGetPercpuStats(virCgroupPtr group G_GNUC_UNUSED,
+ virTypedParameterPtr params G_GNUC_UNUSED,
+ unsigned int nparams G_GNUC_UNUSED,
+ int start_cpu G_GNUC_UNUSED,
+ unsigned int ncpus G_GNUC_UNUSED,
+ virBitmapPtr guestvcpus G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
int
-virCgroupSetOwner(virCgroupPtr cgroup ATTRIBUTE_UNUSED,
- uid_t uid ATTRIBUTE_UNUSED,
- gid_t gid ATTRIBUTE_UNUSED,
- int controllers ATTRIBUTE_UNUSED)
+virCgroupSetOwner(virCgroupPtr cgroup G_GNUC_UNUSED,
+ uid_t uid G_GNUC_UNUSED,
+ gid_t gid G_GNUC_UNUSED,
+ int controllers G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
}
int
-virCgroupHasEmptyTasks(virCgroupPtr cgroup ATTRIBUTE_UNUSED,
- int controller ATTRIBUTE_UNUSED)
+virCgroupHasEmptyTasks(virCgroupPtr cgroup G_GNUC_UNUSED,
+ int controller G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Control groups not supported on this platform"));
}
bool
-virCgroupControllerAvailable(int controller ATTRIBUTE_UNUSED)
+virCgroupControllerAvailable(int controller G_GNUC_UNUSED)
{
return false;
}
static int
virCgroupV1DetectControllers(virCgroupPtr group,
int controllers,
- virCgroupPtr parent ATTRIBUTE_UNUSED)
+ virCgroupPtr parent G_GNUC_UNUSED)
{
size_t i;
size_t j;
static bool
virCgroupV2ValidateMachineGroup(virCgroupPtr group,
- const char *name ATTRIBUTE_UNUSED,
+ const char *name G_GNUC_UNUSED,
const char *drivername,
const char *machinename)
{
static int
virCgroupV2DetectMounts(virCgroupPtr group,
const char *mntType,
- const char *mntOpts ATTRIBUTE_UNUSED,
+ const char *mntOpts G_GNUC_UNUSED,
const char *mntDir)
{
if (STRNEQ(mntType, "cgroup2"))
static int
virCgroupV2ValidatePlacement(virCgroupPtr group,
- pid_t pid ATTRIBUTE_UNUSED)
+ pid_t pid G_GNUC_UNUSED)
{
if (!group->unified.placement) {
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
virCgroupV2SetOwner(virCgroupPtr cgroup,
uid_t uid,
gid_t gid,
- int controllers ATTRIBUTE_UNUSED)
+ int controllers G_GNUC_UNUSED)
{
VIR_AUTOFREE(char *) base = NULL;
static int
-virCgroupV2SetCpusetMemoryMigrate(virCgroupPtr group ATTRIBUTE_UNUSED,
- bool migrate ATTRIBUTE_UNUSED)
+virCgroupV2SetCpusetMemoryMigrate(virCgroupPtr group G_GNUC_UNUSED,
+ bool migrate G_GNUC_UNUSED)
{
return 0;
}
static int
-virCgroupV2GetCpusetMemoryMigrate(virCgroupPtr group ATTRIBUTE_UNUSED,
+virCgroupV2GetCpusetMemoryMigrate(virCgroupPtr group G_GNUC_UNUSED,
bool *migrate)
{
*migrate = true;
* onto child process (well, the one we will exec soon since this
* is called from the child). */
static int
-virCommandMassCloseGetFDsLinux(virCommandPtr cmd ATTRIBUTE_UNUSED,
+virCommandMassCloseGetFDsLinux(virCommandPtr cmd G_GNUC_UNUSED,
virBitmapPtr fds)
{
DIR *dp = NULL;
# else /* !__linux__ */
static int
-virCommandMassCloseGetFDsGeneric(virCommandPtr cmd ATTRIBUTE_UNUSED,
+virCommandMassCloseGetFDsGeneric(virCommandPtr cmd G_GNUC_UNUSED,
virBitmapPtr fds)
{
virBitmapSetAll(fds);
#else /* WIN32 */
int
-virRun(const char *const *argv ATTRIBUTE_UNUSED,
+virRun(const char *const *argv G_GNUC_UNUSED,
int *status)
{
if (status)
}
static int
-virExec(virCommandPtr cmd ATTRIBUTE_UNUSED)
+virExec(virCommandPtr cmd G_GNUC_UNUSED)
{
/* XXX: Some day we can implement pieces of virCommand/virExec on
* top of _spawn() or CreateProcess(), but we can't implement
*/
void
virCommandSetSELinuxLabel(virCommandPtr cmd,
- const char *label ATTRIBUTE_UNUSED)
+ const char *label G_GNUC_UNUSED)
{
if (!cmd || cmd->has_error)
return;
*/
void
virCommandSetAppArmorProfile(virCommandPtr cmd,
- const char *profile ATTRIBUTE_UNUSED)
+ const char *profile G_GNUC_UNUSED)
{
if (!cmd || cmd->has_error)
return;
int
virCommandSetSendBuffer(virCommandPtr cmd,
- int fd ATTRIBUTE_UNUSED,
- unsigned char *buffer ATTRIBUTE_UNUSED,
- size_t buflen ATTRIBUTE_UNUSED)
+ int fd G_GNUC_UNUSED,
+ unsigned char *buffer G_GNUC_UNUSED,
+ size_t buflen G_GNUC_UNUSED)
{
if (!cmd || cmd->has_error)
return -1;
return -1;
}
#else
-int virCommandExec(virCommandPtr cmd ATTRIBUTE_UNUSED, gid_t *groups ATTRIBUTE_UNUSED,
- int ngroups ATTRIBUTE_UNUSED)
+int virCommandExec(virCommandPtr cmd G_GNUC_UNUSED, gid_t *groups G_GNUC_UNUSED,
+ int ngroups G_GNUC_UNUSED)
{
/* Mingw execve() has a broken signature. Disable this
* function until gnulib fixes the signature, since we
}
#else /* WIN32 */
void
-virCommandAbort(virCommandPtr cmd ATTRIBUTE_UNUSED)
+virCommandAbort(virCommandPtr cmd G_GNUC_UNUSED)
{
/* Mingw lacks WNOHANG and kill(). But since we haven't ported
* virExec to mingw yet, there's no process to be killed,
#else /* WIN32 */
int
-virCommandRunRegex(virCommandPtr cmd ATTRIBUTE_UNUSED,
- int nregex ATTRIBUTE_UNUSED,
- const char **regex ATTRIBUTE_UNUSED,
- int *nvars ATTRIBUTE_UNUSED,
- virCommandRunRegexFunc func ATTRIBUTE_UNUSED,
- void *data ATTRIBUTE_UNUSED,
- const char *prefix ATTRIBUTE_UNUSED,
- int *exitstatus ATTRIBUTE_UNUSED)
+virCommandRunRegex(virCommandPtr cmd G_GNUC_UNUSED,
+ int nregex G_GNUC_UNUSED,
+ const char **regex G_GNUC_UNUSED,
+ int *nvars G_GNUC_UNUSED,
+ virCommandRunRegexFunc func G_GNUC_UNUSED,
+ void *data G_GNUC_UNUSED,
+ const char *prefix G_GNUC_UNUSED,
+ int *exitstatus G_GNUC_UNUSED)
{
virReportError(VIR_ERR_INTERNAL_ERROR,
_("%s not implemented on Win32"), __FUNCTION__);
}
int
-virCommandRunNul(virCommandPtr cmd ATTRIBUTE_UNUSED,
- size_t n_columns ATTRIBUTE_UNUSED,
- virCommandRunNulFunc func ATTRIBUTE_UNUSED,
- void *data ATTRIBUTE_UNUSED)
+virCommandRunNul(virCommandPtr cmd G_GNUC_UNUSED,
+ size_t n_columns G_GNUC_UNUSED,
+ virCommandRunNulFunc func G_GNUC_UNUSED,
+ void *data G_GNUC_UNUSED)
{
virReportError(VIR_ERR_INTERNAL_ERROR,
_("%s not implemented on Win32"), __FUNCTION__);
DBusConnection *bus;
};
-static void virDBusWatchCallback(int fdatch ATTRIBUTE_UNUSED,
- int fd ATTRIBUTE_UNUSED,
+static void virDBusWatchCallback(int fdatch G_GNUC_UNUSED,
+ int fd G_GNUC_UNUSED,
int events, void *opaque)
{
DBusWatch *watch = opaque;
static void virDBusRemoveWatch(DBusWatch *watch,
- void *data ATTRIBUTE_UNUSED)
+ void *data G_GNUC_UNUSED)
{
struct virDBusWatch *info;
static void virDBusToggleWatch(DBusWatch *watch,
- void *data ATTRIBUTE_UNUSED)
+ void *data G_GNUC_UNUSED)
{
int flags = 0;
struct virDBusWatch *info;
}
#else /* ! WITH_DBUS */
-void virDBusSetSharedBus(bool shared ATTRIBUTE_UNUSED)
+void virDBusSetSharedBus(bool shared G_GNUC_UNUSED)
{
/* nothing */
}
return NULL;
}
-int virDBusCreateMethod(DBusMessage **call ATTRIBUTE_UNUSED,
- const char *destination ATTRIBUTE_UNUSED,
- const char *path ATTRIBUTE_UNUSED,
- const char *iface ATTRIBUTE_UNUSED,
- const char *member ATTRIBUTE_UNUSED,
- const char *types ATTRIBUTE_UNUSED, ...)
+int virDBusCreateMethod(DBusMessage **call G_GNUC_UNUSED,
+ const char *destination G_GNUC_UNUSED,
+ const char *path G_GNUC_UNUSED,
+ const char *iface G_GNUC_UNUSED,
+ const char *member G_GNUC_UNUSED,
+ const char *types G_GNUC_UNUSED, ...)
{
virReportError(VIR_ERR_INTERNAL_ERROR,
"%s", _("DBus support not compiled into this binary"));
return -1;
}
-int virDBusCreateMethodV(DBusMessage **call ATTRIBUTE_UNUSED,
- const char *destination ATTRIBUTE_UNUSED,
- const char *path ATTRIBUTE_UNUSED,
- const char *iface ATTRIBUTE_UNUSED,
- const char *member ATTRIBUTE_UNUSED,
- const char *types ATTRIBUTE_UNUSED,
- va_list args ATTRIBUTE_UNUSED)
+int virDBusCreateMethodV(DBusMessage **call G_GNUC_UNUSED,
+ const char *destination G_GNUC_UNUSED,
+ const char *path G_GNUC_UNUSED,
+ const char *iface G_GNUC_UNUSED,
+ const char *member G_GNUC_UNUSED,
+ const char *types G_GNUC_UNUSED,
+ va_list args G_GNUC_UNUSED)
{
virReportError(VIR_ERR_INTERNAL_ERROR,
"%s", _("DBus support not compiled into this binary"));
return -1;
}
-int virDBusCreateReplyV(DBusMessage **reply ATTRIBUTE_UNUSED,
- const char *types ATTRIBUTE_UNUSED,
- va_list args ATTRIBUTE_UNUSED)
+int virDBusCreateReplyV(DBusMessage **reply G_GNUC_UNUSED,
+ const char *types G_GNUC_UNUSED,
+ va_list args G_GNUC_UNUSED)
{
virReportError(VIR_ERR_INTERNAL_ERROR,
"%s", _("DBus support not compiled into this binary"));
return -1;
}
-int virDBusCreateReply(DBusMessage **reply ATTRIBUTE_UNUSED,
- const char *types ATTRIBUTE_UNUSED, ...)
+int virDBusCreateReply(DBusMessage **reply G_GNUC_UNUSED,
+ const char *types G_GNUC_UNUSED, ...)
{
virReportError(VIR_ERR_INTERNAL_ERROR,
"%s", _("DBus support not compiled into this binary"));
return -1;
}
-int virDBusCallMethod(DBusConnection *conn ATTRIBUTE_UNUSED,
- DBusMessage **reply ATTRIBUTE_UNUSED,
- virErrorPtr error ATTRIBUTE_UNUSED,
- const char *destination ATTRIBUTE_UNUSED,
- const char *path ATTRIBUTE_UNUSED,
- const char *iface ATTRIBUTE_UNUSED,
- const char *member ATTRIBUTE_UNUSED,
- const char *types ATTRIBUTE_UNUSED, ...)
+int virDBusCallMethod(DBusConnection *conn G_GNUC_UNUSED,
+ DBusMessage **reply G_GNUC_UNUSED,
+ virErrorPtr error G_GNUC_UNUSED,
+ const char *destination G_GNUC_UNUSED,
+ const char *path G_GNUC_UNUSED,
+ const char *iface G_GNUC_UNUSED,
+ const char *member G_GNUC_UNUSED,
+ const char *types G_GNUC_UNUSED, ...)
{
virReportError(VIR_ERR_INTERNAL_ERROR,
"%s", _("DBus support not compiled into this binary"));
}
-int virDBusMessageEncode(DBusMessage* msg ATTRIBUTE_UNUSED,
- const char *types ATTRIBUTE_UNUSED,
+int virDBusMessageEncode(DBusMessage* msg G_GNUC_UNUSED,
+ const char *types G_GNUC_UNUSED,
...)
{
virReportError(VIR_ERR_INTERNAL_ERROR,
return -1;
}
-int virDBusMessageDecode(DBusMessage* msg ATTRIBUTE_UNUSED,
- const char *types ATTRIBUTE_UNUSED,
+int virDBusMessageDecode(DBusMessage* msg G_GNUC_UNUSED,
+ const char *types G_GNUC_UNUSED,
...)
{
virReportError(VIR_ERR_INTERNAL_ERROR,
return -1;
}
-int virDBusIsServiceEnabled(const char *name ATTRIBUTE_UNUSED)
+int virDBusIsServiceEnabled(const char *name G_GNUC_UNUSED)
{
VIR_DEBUG("DBus support not compiled into this binary");
return -2;
}
-int virDBusIsServiceRegistered(const char *name ATTRIBUTE_UNUSED)
+int virDBusIsServiceRegistered(const char *name G_GNUC_UNUSED)
{
VIR_DEBUG("DBus support not compiled into this binary");
return -2;
}
-void virDBusMessageUnref(DBusMessage *msg ATTRIBUTE_UNUSED)
+void virDBusMessageUnref(DBusMessage *msg G_GNUC_UNUSED)
{
/* nothing */
}
#ifdef WITH_DEVMAPPER
static void
-virDevMapperDummyLogger(int level ATTRIBUTE_UNUSED,
- const char *file ATTRIBUTE_UNUSED,
- int line ATTRIBUTE_UNUSED,
- int dm_errno ATTRIBUTE_UNUSED,
- const char *fmt ATTRIBUTE_UNUSED,
+virDevMapperDummyLogger(int level G_GNUC_UNUSED,
+ const char *file G_GNUC_UNUSED,
+ int line G_GNUC_UNUSED,
+ int dm_errno G_GNUC_UNUSED,
+ const char *fmt G_GNUC_UNUSED,
...)
{
return;
#else /* ! WITH_DEVMAPPER */
int
-virDevMapperGetTargets(const char *path ATTRIBUTE_UNUSED,
- char ***devPaths ATTRIBUTE_UNUSED)
+virDevMapperGetTargets(const char *path G_GNUC_UNUSED,
+ char ***devPaths G_GNUC_UNUSED)
{
errno = ENOSYS;
return -1;
* Reloads all the configurations associated to a context
*/
int
-dnsmasqReload(pid_t pid ATTRIBUTE_UNUSED)
+dnsmasqReload(pid_t pid G_GNUC_UNUSED)
{
#ifndef WIN32
if (kill(pid, SIGHUP) != 0) {
}
-static void virEventPollHandleWakeup(int watch ATTRIBUTE_UNUSED,
+static void virEventPollHandleWakeup(int watch G_GNUC_UNUSED,
int fd,
- int events ATTRIBUTE_UNUSED,
- void *opaque ATTRIBUTE_UNUSED)
+ int events G_GNUC_UNUSED,
+ void *opaque G_GNUC_UNUSED)
{
char c;
virMutexLock(&eventLoop.lock);
#else
bool
-virFCIsCapableRport(const char *rport ATTRIBUTE_UNUSED)
+virFCIsCapableRport(const char *rport G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s", _("Not supported on this platform"));
return false;
}
int
-virFCReadRportValue(const char *rport ATTRIBUTE_UNUSED,
- const char *entry ATTRIBUTE_UNUSED,
- char **result ATTRIBUTE_UNUSED)
+virFCReadRportValue(const char *rport G_GNUC_UNUSED,
+ const char *entry G_GNUC_UNUSED,
+ char **result G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s", _("Not supported on this platform"));
return -1;
return ret;
}
-static void virFDStreamEvent(int watch ATTRIBUTE_UNUSED,
- int fd ATTRIBUTE_UNUSED,
+static void virFDStreamEvent(int watch G_GNUC_UNUSED,
+ int fd G_GNUC_UNUSED,
int events,
void *opaque)
{
return -1;
}
#else
-int virFDStreamConnectUNIX(virStreamPtr st ATTRIBUTE_UNUSED,
- const char *path ATTRIBUTE_UNUSED,
- bool abstract ATTRIBUTE_UNUSED)
+int virFDStreamConnectUNIX(virStreamPtr st G_GNUC_UNUSED,
+ const char *path G_GNUC_UNUSED,
+ bool abstract G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("UNIX domain sockets are not supported on this platform"));
if (!(flags & VIR_FILE_CLOSE_IGNORE_EBADF))
VIR_WARN("Tried to close invalid fd %d", *fdptr);
} else {
- char ebuf[1024] ATTRIBUTE_UNUSED;
+ char ebuf[1024] G_GNUC_UNUSED;
VIR_DEBUG("Failed to close fd %d: %s",
*fdptr, virStrerror(errno, ebuf, sizeof(ebuf)));
}
}
#else
virFileWrapperFdPtr
-virFileWrapperFdNew(int *fd ATTRIBUTE_UNUSED,
- const char *name ATTRIBUTE_UNUSED,
- unsigned int fdflags ATTRIBUTE_UNUSED)
+virFileWrapperFdNew(int *fd G_GNUC_UNUSED,
+ const char *name G_GNUC_UNUSED,
+ unsigned int fdflags G_GNUC_UNUSED)
{
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
_("virFileWrapperFd unsupported on this platform"));
#else
-int virFileLock(int fd ATTRIBUTE_UNUSED,
- bool shared ATTRIBUTE_UNUSED,
- off_t start ATTRIBUTE_UNUSED,
- off_t len ATTRIBUTE_UNUSED,
- bool waitForLock ATTRIBUTE_UNUSED)
+int virFileLock(int fd G_GNUC_UNUSED,
+ bool shared G_GNUC_UNUSED,
+ off_t start G_GNUC_UNUSED,
+ off_t len G_GNUC_UNUSED,
+ bool waitForLock G_GNUC_UNUSED)
{
return -ENOSYS;
}
-int virFileUnlock(int fd ATTRIBUTE_UNUSED,
- off_t start ATTRIBUTE_UNUSED,
- off_t len ATTRIBUTE_UNUSED)
+int virFileUnlock(int fd G_GNUC_UNUSED,
+ off_t start G_GNUC_UNUSED,
+ off_t len G_GNUC_UNUSED)
{
return -ENOSYS;
}
-int virFileFlock(int fd ATTRIBUTE_UNUSED,
- bool lock ATTRIBUTE_UNUSED,
- bool shared ATTRIBUTE_UNUSED)
+int virFileFlock(int fd G_GNUC_UNUSED,
+ bool lock G_GNUC_UNUSED,
+ bool shared G_GNUC_UNUSED)
{
errno = ENOSYS;
return -1;
#else /* __linux__ */
int virFileLoopDeviceAssociate(const char *file,
- char **dev ATTRIBUTE_UNUSED)
+ char **dev G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS,
_("Unable to associate file %s with loop device"),
}
int virFileNBDDeviceAssociate(const char *file,
- virStorageFileFormat fmt ATTRIBUTE_UNUSED,
- bool readonly ATTRIBUTE_UNUSED,
- char **dev ATTRIBUTE_UNUSED)
+ virStorageFileFormat fmt G_GNUC_UNUSED,
+ bool readonly G_GNUC_UNUSED,
+ char **dev G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS,
_("Unable to associate file %s with NBD device"),
}
#else /* !HAVE_POSIX_FALLOCATE */
static int
-safezero_posix_fallocate(int fd ATTRIBUTE_UNUSED,
- off_t offset ATTRIBUTE_UNUSED,
- off_t len ATTRIBUTE_UNUSED)
+safezero_posix_fallocate(int fd G_GNUC_UNUSED,
+ off_t offset G_GNUC_UNUSED,
+ off_t len G_GNUC_UNUSED)
{
return -2;
}
}
#else /* !HAVE_SYS_SYSCALL_H || !defined(SYS_fallocate) */
static int
-safezero_sys_fallocate(int fd ATTRIBUTE_UNUSED,
- off_t offset ATTRIBUTE_UNUSED,
- off_t len ATTRIBUTE_UNUSED)
+safezero_sys_fallocate(int fd G_GNUC_UNUSED,
+ off_t offset G_GNUC_UNUSED,
+ off_t len G_GNUC_UNUSED)
{
return -2;
}
}
#else /* !HAVE_MMAP */
static int
-safezero_mmap(int fd ATTRIBUTE_UNUSED,
- off_t offset ATTRIBUTE_UNUSED,
- off_t len ATTRIBUTE_UNUSED)
+safezero_mmap(int fd G_GNUC_UNUSED,
+ off_t offset G_GNUC_UNUSED,
+ off_t len G_GNUC_UNUSED)
{
return -2;
}
#else /* defined HAVE_MNTENT_H && defined HAVE_GETMNTENT_R */
char *
-virFileFindMountPoint(const char *type ATTRIBUTE_UNUSED)
+virFileFindMountPoint(const char *type G_GNUC_UNUSED)
{
errno = ENOSYS;
}
#else /* ! defined HAVE_MNTENT_H && defined HAVE_GETMNTENT_R */
static int
-virFileGetMountSubtreeImpl(const char *mtabpath ATTRIBUTE_UNUSED,
- const char *prefix ATTRIBUTE_UNUSED,
- char ***mountsret ATTRIBUTE_UNUSED,
- size_t *nmountsret ATTRIBUTE_UNUSED,
- bool reverse ATTRIBUTE_UNUSED)
+virFileGetMountSubtreeImpl(const char *mtabpath G_GNUC_UNUSED,
+ const char *prefix G_GNUC_UNUSED,
+ char ***mountsret G_GNUC_UNUSED,
+ size_t *nmountsret G_GNUC_UNUSED,
+ bool reverse G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Unable to determine mount table on this platform"));
int
virFileAccessibleAs(const char *path,
int mode,
- uid_t uid ATTRIBUTE_UNUSED,
- gid_t gid ATTRIBUTE_UNUSED)
+ uid_t uid G_GNUC_UNUSED,
+ gid_t gid G_GNUC_UNUSED)
{
VIR_WARN("Ignoring uid/gid due to WIN32");
/* return -errno on failure, or 0 on success */
int
-virFileOpenAs(const char *path ATTRIBUTE_UNUSED,
- int openflags ATTRIBUTE_UNUSED,
- mode_t mode ATTRIBUTE_UNUSED,
- uid_t uid ATTRIBUTE_UNUSED,
- gid_t gid ATTRIBUTE_UNUSED,
- unsigned int flags_unused ATTRIBUTE_UNUSED)
+virFileOpenAs(const char *path G_GNUC_UNUSED,
+ int openflags G_GNUC_UNUSED,
+ mode_t mode G_GNUC_UNUSED,
+ uid_t uid G_GNUC_UNUSED,
+ gid_t gid G_GNUC_UNUSED,
+ unsigned int flags_unused G_GNUC_UNUSED)
{
virReportError(VIR_ERR_INTERNAL_ERROR,
"%s", _("virFileOpenAs is not implemented for WIN32"));
}
int
-virDirCreate(const char *path ATTRIBUTE_UNUSED,
- mode_t mode ATTRIBUTE_UNUSED,
- uid_t uid ATTRIBUTE_UNUSED,
- gid_t gid ATTRIBUTE_UNUSED,
- unsigned int flags_unused ATTRIBUTE_UNUSED)
+virDirCreate(const char *path G_GNUC_UNUSED,
+ mode_t mode G_GNUC_UNUSED,
+ uid_t uid G_GNUC_UNUSED,
+ gid_t gid G_GNUC_UNUSED,
+ unsigned int flags_unused G_GNUC_UNUSED)
{
virReportError(VIR_ERR_INTERNAL_ERROR,
"%s", _("virDirCreate is not implemented for WIN32"));
int
virFileRemove(const char *path,
- uid_t uid ATTRIBUTE_UNUSED,
- gid_t gid ATTRIBUTE_UNUSED)
+ uid_t uid G_GNUC_UNUSED,
+ gid_t gid G_GNUC_UNUSED)
{
if (unlink(path) < 0) {
virReportSystemError(errno, _("Unable to unlink path '%s'"),
}
#else /* WIN32 */
int
-virFileOpenTty(int *ttymaster ATTRIBUTE_UNUSED,
- char **ttyName ATTRIBUTE_UNUSED,
- int rawmode ATTRIBUTE_UNUSED)
+virFileOpenTty(int *ttymaster G_GNUC_UNUSED,
+ char **ttyName G_GNUC_UNUSED,
+ int rawmode G_GNUC_UNUSED)
{
/* mingw completely lacks pseudo-terminals, and the gnulib
* replacements are not (yet) license compatible. */
#else /* defined __linux__ */
-int virFileIsSharedFSType(const char *path ATTRIBUTE_UNUSED,
- int fstypes ATTRIBUTE_UNUSED)
+int virFileIsSharedFSType(const char *path G_GNUC_UNUSED,
+ int fstypes G_GNUC_UNUSED)
{
/* XXX implement me :-) */
return 0;
}
int
-virFileGetHugepageSize(const char *path ATTRIBUTE_UNUSED,
- unsigned long long *size ATTRIBUTE_UNUSED)
+virFileGetHugepageSize(const char *path G_GNUC_UNUSED,
+ unsigned long long *size G_GNUC_UNUSED)
{
/* XXX implement me :-) */
virReportUnsupportedError();
}
int
-virFileFindHugeTLBFS(virHugeTLBFSPtr *ret_fs ATTRIBUTE_UNUSED,
- size_t *ret_nfs ATTRIBUTE_UNUSED)
+virFileFindHugeTLBFS(virHugeTLBFSPtr *ret_fs G_GNUC_UNUSED,
+ size_t *ret_nfs G_GNUC_UNUSED)
{
/* XXX implement me :-) */
virReportUnsupportedError();
#else /* !defined(__linux__) || !defined(HAVE_SYS_MOUNT_H) */
int
-virFileSetupDev(const char *path ATTRIBUTE_UNUSED,
- const char *mount_options ATTRIBUTE_UNUSED)
+virFileSetupDev(const char *path G_GNUC_UNUSED,
+ const char *mount_options G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("mount is not supported on this platform."));
int
-virFileBindMountDevice(const char *src ATTRIBUTE_UNUSED,
- const char *dst ATTRIBUTE_UNUSED)
+virFileBindMountDevice(const char *src G_GNUC_UNUSED,
+ const char *dst G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("mount is not supported on this platform."));
int
-virFileMoveMount(const char *src ATTRIBUTE_UNUSED,
- const char *dst ATTRIBUTE_UNUSED)
+virFileMoveMount(const char *src G_GNUC_UNUSED,
+ const char *dst G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("mount move is not supported on this platform."));
#else /* !defined(HAVE_SYS_ACL_H) */
int
-virFileGetACLs(const char *file ATTRIBUTE_UNUSED,
- void **acl ATTRIBUTE_UNUSED)
+virFileGetACLs(const char *file G_GNUC_UNUSED,
+ void **acl G_GNUC_UNUSED)
{
errno = ENOTSUP;
return -1;
int
-virFileSetACLs(const char *file ATTRIBUTE_UNUSED,
- void *acl ATTRIBUTE_UNUSED)
+virFileSetACLs(const char *file G_GNUC_UNUSED,
+ void *acl G_GNUC_UNUSED)
{
errno = ENOTSUP;
return -1;
#else /* !HAVE_DECL_SEEK_HOLE */
int
-virFileInData(int fd ATTRIBUTE_UNUSED,
- int *inData ATTRIBUTE_UNUSED,
- long long *length ATTRIBUTE_UNUSED)
+virFileInData(int fd G_GNUC_UNUSED,
+ int *inData G_GNUC_UNUSED,
+ long long *length G_GNUC_UNUSED)
{
errno = ENOSYS;
virReportSystemError(errno, "%s",
#else /* !HAVE_LIBATTR */
int
-virFileGetXAttrQuiet(const char *path ATTRIBUTE_UNUSED,
- const char *name ATTRIBUTE_UNUSED,
- char **value ATTRIBUTE_UNUSED)
+virFileGetXAttrQuiet(const char *path G_GNUC_UNUSED,
+ const char *name G_GNUC_UNUSED,
+ char **value G_GNUC_UNUSED)
{
errno = ENOSYS;
return -1;
int
virFileSetXAttr(const char *path,
const char *name,
- const char *value ATTRIBUTE_UNUSED)
+ const char *value G_GNUC_UNUSED)
{
errno = ENOSYS;
virReportSystemError(errno,
void
-virHashValueFree(void *value, const void *name ATTRIBUTE_UNUSED)
+virHashValueFree(void *value, const void *name G_GNUC_UNUSED)
{
VIR_FREE(value);
}
}
static int
-_virHashRemoveAllIter(const void *payload ATTRIBUTE_UNUSED,
- const void *name ATTRIBUTE_UNUSED,
- const void *data ATTRIBUTE_UNUSED)
+_virHashRemoveAllIter(const void *payload G_GNUC_UNUSED,
+ const void *name G_GNUC_UNUSED,
+ const void *data G_GNUC_UNUSED)
{
return 1;
}
int
-virHostCPUGetInfo(virArch hostarch ATTRIBUTE_UNUSED,
- unsigned int *cpus ATTRIBUTE_UNUSED,
- unsigned int *mhz ATTRIBUTE_UNUSED,
- unsigned int *nodes ATTRIBUTE_UNUSED,
- unsigned int *sockets ATTRIBUTE_UNUSED,
- unsigned int *cores ATTRIBUTE_UNUSED,
- unsigned int *threads ATTRIBUTE_UNUSED)
+virHostCPUGetInfo(virArch hostarch G_GNUC_UNUSED,
+ unsigned int *cpus G_GNUC_UNUSED,
+ unsigned int *mhz G_GNUC_UNUSED,
+ unsigned int *nodes G_GNUC_UNUSED,
+ unsigned int *sockets G_GNUC_UNUSED,
+ unsigned int *cores G_GNUC_UNUSED,
+ unsigned int *threads G_GNUC_UNUSED)
{
#ifdef __linux__
int ret = -1;
int
-virHostCPUGetStats(int cpuNum ATTRIBUTE_UNUSED,
- virNodeCPUStatsPtr params ATTRIBUTE_UNUSED,
- int *nparams ATTRIBUTE_UNUSED,
+virHostCPUGetStats(int cpuNum G_GNUC_UNUSED,
+ virNodeCPUStatsPtr params G_GNUC_UNUSED,
+ int *nparams G_GNUC_UNUSED,
unsigned int flags)
{
virCheckFlags(0, -1);
/* Fallback for nodeGetThreadsPerSubcore() used when KVM headers
* are not available on the system */
int
-virHostCPUGetThreadsPerSubcore(virArch arch ATTRIBUTE_UNUSED)
+virHostCPUGetThreadsPerSubcore(virArch arch G_GNUC_UNUSED)
{
return 0;
}
#else
int
-virHostCPUGetMSR(unsigned long index ATTRIBUTE_UNUSED,
- uint64_t *msr ATTRIBUTE_UNUSED)
+virHostCPUGetMSR(unsigned long index G_GNUC_UNUSED,
+ uint64_t *msr G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Reading MSRs is not supported on this platform"));
int
-virHostMemGetStats(int cellNum ATTRIBUTE_UNUSED,
- virNodeMemoryStatsPtr params ATTRIBUTE_UNUSED,
- int *nparams ATTRIBUTE_UNUSED,
+virHostMemGetStats(int cellNum G_GNUC_UNUSED,
+ virNodeMemoryStatsPtr params G_GNUC_UNUSED,
+ int *nparams G_GNUC_UNUSED,
unsigned int flags)
{
virCheckFlags(0, -1);
#endif
int
-virHostMemSetParameters(virTypedParameterPtr params ATTRIBUTE_UNUSED,
- int nparams ATTRIBUTE_UNUSED,
+virHostMemSetParameters(virTypedParameterPtr params G_GNUC_UNUSED,
+ int nparams G_GNUC_UNUSED,
unsigned int flags)
{
virCheckFlags(0, -1);
#define NODE_MEMORY_PARAMETERS_NUM 8
int
-virHostMemGetParameters(virTypedParameterPtr params ATTRIBUTE_UNUSED,
- int *nparams ATTRIBUTE_UNUSED,
+virHostMemGetParameters(virTypedParameterPtr params G_GNUC_UNUSED,
+ int *nparams G_GNUC_UNUSED,
unsigned int flags)
{
virCheckFlags(VIR_TYPED_PARAM_STRING_OKAY, -1);
static int
virHostMemGetCellsFreeFake(unsigned long long *freeMems,
int startCell,
- int maxCells ATTRIBUTE_UNUSED)
+ int maxCells G_GNUC_UNUSED)
{
double avail = physmem_available();
NULL
};
-int virInitctlSetRunLevel(const char *fifo ATTRIBUTE_UNUSED,
- virInitctlRunLevel level ATTRIBUTE_UNUSED)
+int virInitctlSetRunLevel(const char *fifo G_GNUC_UNUSED,
+ virInitctlRunLevel level G_GNUC_UNUSED)
{
virReportUnsupportedError();
return -1;
void
virJSONValueHashFree(void *opaque,
- const void *name ATTRIBUTE_UNUSED)
+ const void *name G_GNUC_UNUSED)
{
virJSONValueFree(opaque);
}
#else
virJSONValuePtr
-virJSONValueFromString(const char *jsonstring ATTRIBUTE_UNUSED)
+virJSONValueFromString(const char *jsonstring G_GNUC_UNUSED)
{
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
_("No JSON parser implementation is available"));
int
-virJSONValueToBuffer(virJSONValuePtr object ATTRIBUTE_UNUSED,
- virBufferPtr buf ATTRIBUTE_UNUSED,
- bool pretty ATTRIBUTE_UNUSED)
+virJSONValueToBuffer(virJSONValuePtr object G_GNUC_UNUSED,
+ virBufferPtr buf G_GNUC_UNUSED,
+ bool pretty G_GNUC_UNUSED)
{
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
_("No JSON parser implementation is available"));
}
-static void virKeyFileEntryFree(void *payload, const void *name ATTRIBUTE_UNUSED)
+static void virKeyFileEntryFree(void *payload, const void *name G_GNUC_UNUSED)
{
virHashFree(payload);
}
* one that now exists on the filesystem
*/
if (stat(res->path, &a) < 0) {
- char ebuf[1024] ATTRIBUTE_UNUSED;
+ char ebuf[1024] G_GNUC_UNUSED;
VIR_DEBUG("Resource '%s' disappeared: %s",
res->path, virStrerror(errno, ebuf, sizeof(ebuf)));
VIR_FORCE_CLOSE(res->fd);
}
-static void virLockSpaceResourceDataFree(void *opaque, const void *name ATTRIBUTE_UNUSED)
+static void virLockSpaceResourceDataFree(void *opaque, const void *name G_GNUC_UNUSED)
{
virLockSpaceResourcePtr res = opaque;
virLockSpaceResourceFree(res);
static int
virLockSpaceRemoveResourcesForOwner(const void *payload,
- const void *name ATTRIBUTE_UNUSED,
+ const void *name G_GNUC_UNUSED,
const void *opaque)
{
virLockSpaceResourcePtr res = (virLockSpaceResourcePtr)payload;
}
static void
-virLogOutputToFd(virLogSourcePtr source ATTRIBUTE_UNUSED,
- virLogPriority priority ATTRIBUTE_UNUSED,
- const char *filename ATTRIBUTE_UNUSED,
- int linenr ATTRIBUTE_UNUSED,
- const char *funcname ATTRIBUTE_UNUSED,
+virLogOutputToFd(virLogSourcePtr source G_GNUC_UNUSED,
+ virLogPriority priority G_GNUC_UNUSED,
+ const char *filename G_GNUC_UNUSED,
+ int linenr G_GNUC_UNUSED,
+ const char *funcname G_GNUC_UNUSED,
const char *timestamp,
- virLogMetadataPtr metadata ATTRIBUTE_UNUSED,
+ virLogMetadataPtr metadata G_GNUC_UNUSED,
unsigned int flags,
- const char *rawstr ATTRIBUTE_UNUSED,
+ const char *rawstr G_GNUC_UNUSED,
const char *str,
void *data)
{
#if HAVE_SYSLOG_H
static void
-virLogOutputToSyslog(virLogSourcePtr source ATTRIBUTE_UNUSED,
+virLogOutputToSyslog(virLogSourcePtr source G_GNUC_UNUSED,
virLogPriority priority,
- const char *filename ATTRIBUTE_UNUSED,
- int linenr ATTRIBUTE_UNUSED,
- const char *funcname ATTRIBUTE_UNUSED,
- const char *timestamp ATTRIBUTE_UNUSED,
- virLogMetadataPtr metadata ATTRIBUTE_UNUSED,
+ const char *filename G_GNUC_UNUSED,
+ int linenr G_GNUC_UNUSED,
+ const char *funcname G_GNUC_UNUSED,
+ const char *timestamp G_GNUC_UNUSED,
+ virLogMetadataPtr metadata G_GNUC_UNUSED,
unsigned int flags,
- const char *rawstr ATTRIBUTE_UNUSED,
+ const char *rawstr G_GNUC_UNUSED,
const char *str,
- void *data ATTRIBUTE_UNUSED)
+ void *data G_GNUC_UNUSED)
{
virCheckFlags(VIR_LOG_STACK_TRACE,);
static void
-virLogCloseSyslog(void *data ATTRIBUTE_UNUSED)
+virLogCloseSyslog(void *data G_GNUC_UNUSED)
{
closelog();
VIR_FREE(current_ident);
const char *filename,
int linenr,
const char *funcname,
- const char *timestamp ATTRIBUTE_UNUSED,
+ const char *timestamp G_GNUC_UNUSED,
virLogMetadataPtr metadata,
unsigned int flags,
const char *rawstr,
- const char *str ATTRIBUTE_UNUSED,
+ const char *str G_GNUC_UNUSED,
void *data)
{
virCheckFlags(VIR_LOG_STACK_TRACE,);
}
#else /* HAVE_SYSLOG_H */
-int virLogPriorityFromSyslog(int priority ATTRIBUTE_UNUSED)
+int virLogPriorityFromSyslog(int priority G_GNUC_UNUSED)
{
return VIR_LOG_ERROR;
}
};
/*
- * ATTRIBUTE_UNUSED is to make gcc keep quiet if all the
+ * G_GNUC_UNUSED is to make gcc keep quiet if all the
* log statements in a file are conditionally disabled
* at compile time due to configure options.
*/
#define VIR_LOG_INIT(n) \
- static ATTRIBUTE_UNUSED virLogSource virLogSelf = { \
+ static G_GNUC_UNUSED virLogSource virLogSelf = { \
.name = "" n "", \
.priority = VIR_LOG_ERROR, \
.serial = 0, \
static int
virMacMapHashFree(void *payload,
- const void *name ATTRIBUTE_UNUSED,
- void *opaque ATTRIBUTE_UNUSED)
+ const void *name G_GNUC_UNUSED,
+ void *opaque G_GNUC_UNUSED)
{
virStringListFree(payload);
return 0;
#else
virMediatedDevicePtr
-virMediatedDeviceNew(const char *uuidstr ATTRIBUTE_UNUSED,
- virMediatedDeviceModelType model ATTRIBUTE_UNUSED)
+virMediatedDeviceNew(const char *uuidstr G_GNUC_UNUSED,
+ virMediatedDeviceModelType model G_GNUC_UNUSED)
{
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
_("mediated devices are not supported on non-linux "
#else /* ! HAVE_DLFCN_H */
int
virModuleLoad(const char *path,
- const char *regfunc ATTRIBUTE_UNUSED,
+ const char *regfunc G_GNUC_UNUSED,
bool required)
{
VIR_DEBUG("dlopen not available on this platform");
}
#else /* !HAVE_STRUCT_IFREQ */
int
-virNetDevSetupControl(const char *ifname ATTRIBUTE_UNUSED,
- void *ifr ATTRIBUTE_UNUSED)
+virNetDevSetupControl(const char *ifname G_GNUC_UNUSED,
+ void *ifr G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Network device configuration is not supported "
static int
virNetDevSetMACInternal(const char *ifname,
- const virMacAddr *macaddr ATTRIBUTE_UNUSED,
- bool quiet ATTRIBUTE_UNUSED)
+ const virMacAddr *macaddr G_GNUC_UNUSED,
+ bool quiet G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS,
_("Cannot set interface MAC on '%s'"),
}
#else
int virNetDevGetMAC(const char *ifname,
- virMacAddrPtr macaddr ATTRIBUTE_UNUSED)
+ virMacAddrPtr macaddr G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS,
_("Cannot get interface MAC on '%s'"),
return 0;
}
#else
-int virNetDevSetMTU(const char *ifname, int mtu ATTRIBUTE_UNUSED)
+int virNetDevSetMTU(const char *ifname, int mtu G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS,
_("Cannot set interface MTU on '%s'"),
#else
static int
virNetDevSetIFFlag(const char *ifname,
- int flag ATTRIBUTE_UNUSED,
- bool val ATTRIBUTE_UNUSED)
+ int flag G_GNUC_UNUSED,
+ bool val G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS,
_("Cannot set interface flags on '%s'"),
#else
static int
virNetDevGetIFFlag(const char *ifname,
- int flag ATTRIBUTE_UNUSED,
- bool *val ATTRIBUTE_UNUSED)
+ int flag G_GNUC_UNUSED,
+ bool *val G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS,
_("Cannot get interface flags on '%s'"),
return 0;
}
#else /* ! SIOCGIFINDEX */
-int virNetDevGetIndex(const char *ifname ATTRIBUTE_UNUSED,
- int *ifindex ATTRIBUTE_UNUSED)
+int virNetDevGetIndex(const char *ifname G_GNUC_UNUSED,
+ int *ifindex G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Unable to get interface index on this platform"));
int
-virNetDevGetMaster(const char *ifname ATTRIBUTE_UNUSED,
- char **master ATTRIBUTE_UNUSED)
+virNetDevGetMaster(const char *ifname G_GNUC_UNUSED,
+ char **master G_GNUC_UNUSED)
{
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
_("Unable to get device master from netlink on this platform"));
return 0;
}
#else /* ! SIOCGIFVLAN */
-int virNetDevGetVLanID(const char *ifname ATTRIBUTE_UNUSED,
- int *vlanid ATTRIBUTE_UNUSED)
+int virNetDevGetVLanID(const char *ifname G_GNUC_UNUSED,
+ int *vlanid G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Unable to get VLAN on this platform"));
return 1;
}
#else
-int virNetDevValidateConfig(const char *ifname ATTRIBUTE_UNUSED,
- const virMacAddr *macaddr ATTRIBUTE_UNUSED,
- int ifindex ATTRIBUTE_UNUSED)
+int virNetDevValidateConfig(const char *ifname G_GNUC_UNUSED,
+ const virMacAddr *macaddr G_GNUC_UNUSED,
+ int ifindex G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Unable to check interface config on this platform"));
#else /* !__linux__ */
int
-virNetDevGetPhysPortID(const char *ifname ATTRIBUTE_UNUSED,
+virNetDevGetPhysPortID(const char *ifname G_GNUC_UNUSED,
char **physPortID)
{
/* this actually should never be called, and is just here to
}
int
-virNetDevGetVirtualFunctions(const char *pfname ATTRIBUTE_UNUSED,
- char ***vfname ATTRIBUTE_UNUSED,
- virPCIDeviceAddressPtr **virt_fns ATTRIBUTE_UNUSED,
- size_t *n_vfname ATTRIBUTE_UNUSED,
- unsigned int *max_vfs ATTRIBUTE_UNUSED)
+virNetDevGetVirtualFunctions(const char *pfname G_GNUC_UNUSED,
+ char ***vfname G_GNUC_UNUSED,
+ virPCIDeviceAddressPtr **virt_fns G_GNUC_UNUSED,
+ size_t *n_vfname G_GNUC_UNUSED,
+ unsigned int *max_vfs G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Unable to get virtual functions on this platform"));
}
int
-virNetDevIsVirtualFunction(const char *ifname ATTRIBUTE_UNUSED)
+virNetDevIsVirtualFunction(const char *ifname G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Unable to check virtual function status on this platform"));
}
int
-virNetDevGetVirtualFunctionIndex(const char *pfname ATTRIBUTE_UNUSED,
- const char *vfname ATTRIBUTE_UNUSED,
- int *vf_index ATTRIBUTE_UNUSED)
+virNetDevGetVirtualFunctionIndex(const char *pfname G_GNUC_UNUSED,
+ const char *vfname G_GNUC_UNUSED,
+ int *vf_index G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Unable to get virtual function index on this platform"));
}
int
-virNetDevGetPhysicalFunction(const char *ifname ATTRIBUTE_UNUSED,
- char **pfname ATTRIBUTE_UNUSED)
+virNetDevGetPhysicalFunction(const char *ifname G_GNUC_UNUSED,
+ char **pfname G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Unable to get physical function status on this platform"));
}
int
-virNetDevPFGetVF(const char *pfname ATTRIBUTE_UNUSED,
- int vf ATTRIBUTE_UNUSED,
- char **vfname ATTRIBUTE_UNUSED)
+virNetDevPFGetVF(const char *pfname G_GNUC_UNUSED,
+ int vf G_GNUC_UNUSED,
+ char **vfname G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Unable to get virtual function name on this platform"));
}
int
-virNetDevGetVirtualFunctionInfo(const char *vfname ATTRIBUTE_UNUSED,
- char **pfname ATTRIBUTE_UNUSED,
- int *vf ATTRIBUTE_UNUSED)
+virNetDevGetVirtualFunctionInfo(const char *vfname G_GNUC_UNUSED,
+ char **pfname G_GNUC_UNUSED,
+ int *vf G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Unable to get virtual function info on this platform"));
}
int
-virNetDevSysfsFile(char **pf_sysfs_device_link ATTRIBUTE_UNUSED,
- const char *ifname ATTRIBUTE_UNUSED,
- const char *file ATTRIBUTE_UNUSED)
+virNetDevSysfsFile(char **pf_sysfs_device_link G_GNUC_UNUSED,
+ const char *ifname G_GNUC_UNUSED,
+ const char *file G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Unable to get sysfs info on this platform"));
int
-virNetDevSaveNetConfig(const char *linkdev ATTRIBUTE_UNUSED,
- int vf ATTRIBUTE_UNUSED,
- const char *stateDir ATTRIBUTE_UNUSED,
- bool saveVlan ATTRIBUTE_UNUSED)
+virNetDevSaveNetConfig(const char *linkdev G_GNUC_UNUSED,
+ int vf G_GNUC_UNUSED,
+ const char *stateDir G_GNUC_UNUSED,
+ bool saveVlan G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Unable to save net device config on this platform"));
int
-virNetDevReadNetConfig(const char *linkdev ATTRIBUTE_UNUSED,
- int vf ATTRIBUTE_UNUSED,
- const char *stateDir ATTRIBUTE_UNUSED,
- virMacAddrPtr *adminMAC ATTRIBUTE_UNUSED,
- virNetDevVlanPtr *vlan ATTRIBUTE_UNUSED,
- virMacAddrPtr *MAC ATTRIBUTE_UNUSED)
+virNetDevReadNetConfig(const char *linkdev G_GNUC_UNUSED,
+ int vf G_GNUC_UNUSED,
+ const char *stateDir G_GNUC_UNUSED,
+ virMacAddrPtr *adminMAC G_GNUC_UNUSED,
+ virNetDevVlanPtr *vlan G_GNUC_UNUSED,
+ virMacAddrPtr *MAC G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Unable to read net device config on this platform"));
int
-virNetDevSetNetConfig(const char *linkdev ATTRIBUTE_UNUSED,
- int vf ATTRIBUTE_UNUSED,
- const virMacAddr *adminMAC ATTRIBUTE_UNUSED,
- virNetDevVlanPtr vlan ATTRIBUTE_UNUSED,
- const virMacAddr *MAC ATTRIBUTE_UNUSED,
- bool setVlan ATTRIBUTE_UNUSED)
+virNetDevSetNetConfig(const char *linkdev G_GNUC_UNUSED,
+ int vf G_GNUC_UNUSED,
+ const virMacAddr *adminMAC G_GNUC_UNUSED,
+ virNetDevVlanPtr vlan G_GNUC_UNUSED,
+ const virMacAddr *MAC G_GNUC_UNUSED,
+ bool setVlan G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Unable to set net device config on this platform"));
return 0;
}
#else
-int virNetDevAddMulti(const char *ifname ATTRIBUTE_UNUSED,
- virMacAddrPtr macaddr ATTRIBUTE_UNUSED)
+int virNetDevAddMulti(const char *ifname G_GNUC_UNUSED,
+ virMacAddrPtr macaddr G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Unable to add address to interface "
return 0;
}
#else
-int virNetDevDelMulti(const char *ifname ATTRIBUTE_UNUSED,
- virMacAddrPtr macaddr ATTRIBUTE_UNUSED)
+int virNetDevDelMulti(const char *ifname G_GNUC_UNUSED,
+ virMacAddrPtr macaddr G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Unable to delete address from interface "
}
# else
static int
-virNetDevSwitchdevFeature(const char *ifname ATTRIBUTE_UNUSED,
- virBitmapPtr *out ATTRIBUTE_UNUSED)
+virNetDevSwitchdevFeature(const char *ifname G_GNUC_UNUSED,
+ virBitmapPtr *out G_GNUC_UNUSED)
{
return 0;
}
}
# else
static int
-virNetDevGetEthtoolGFeatures(virBitmapPtr bitmap ATTRIBUTE_UNUSED,
- int fd ATTRIBUTE_UNUSED,
- struct ifreq *ifr ATTRIBUTE_UNUSED)
+virNetDevGetEthtoolGFeatures(virBitmapPtr bitmap G_GNUC_UNUSED,
+ int fd G_GNUC_UNUSED,
+ struct ifreq *ifr G_GNUC_UNUSED)
{
return 0;
}
}
#else
int
-virNetDevGetFeatures(const char *ifname ATTRIBUTE_UNUSED,
- virBitmapPtr *out ATTRIBUTE_UNUSED)
+virNetDevGetFeatures(const char *ifname G_GNUC_UNUSED,
+ virBitmapPtr *out G_GNUC_UNUSED)
{
VIR_DEBUG("Getting network device features on %s is not implemented on this platform",
ifname);
#else
int
-virNetDevBridgePortGetLearning(const char *brname ATTRIBUTE_UNUSED,
- const char *ifname ATTRIBUTE_UNUSED,
- bool *enable ATTRIBUTE_UNUSED)
+virNetDevBridgePortGetLearning(const char *brname G_GNUC_UNUSED,
+ const char *ifname G_GNUC_UNUSED,
+ bool *enable G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Unable to get bridge port learning on this platform"));
int
-virNetDevBridgePortSetLearning(const char *brname ATTRIBUTE_UNUSED,
- const char *ifname ATTRIBUTE_UNUSED,
- bool enable ATTRIBUTE_UNUSED)
+virNetDevBridgePortSetLearning(const char *brname G_GNUC_UNUSED,
+ const char *ifname G_GNUC_UNUSED,
+ bool enable G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Unable to set bridge port learning on this platform"));
int
-virNetDevBridgePortGetUnicastFlood(const char *brname ATTRIBUTE_UNUSED,
- const char *ifname ATTRIBUTE_UNUSED,
- bool *enable ATTRIBUTE_UNUSED)
+virNetDevBridgePortGetUnicastFlood(const char *brname G_GNUC_UNUSED,
+ const char *ifname G_GNUC_UNUSED,
+ bool *enable G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Unable to get bridge port unicast_flood on this platform"));
int
-virNetDevBridgePortSetUnicastFlood(const char *brname ATTRIBUTE_UNUSED,
- const char *ifname ATTRIBUTE_UNUSED,
- bool enable ATTRIBUTE_UNUSED)
+virNetDevBridgePortSetUnicastFlood(const char *brname G_GNUC_UNUSED,
+ const char *ifname G_GNUC_UNUSED,
+ bool enable G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Unable to set bridge port unicast_flood on this platform"));
return 0;
}
#else
-int virNetDevBridgeDelete(const char *brname ATTRIBUTE_UNUSED)
+int virNetDevBridgeDelete(const char *brname G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS,
_("Unable to delete bridge %s"), brname);
return 0;
}
int virNetDevBridgeGetSTPDelay(const char *brname,
- int *delay ATTRIBUTE_UNUSED)
+ int *delay G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS,
_("Unable to get STP delay on %s on this platform"),
return -1;
}
-int virNetDevBridgeSetSTP(const char *brname ATTRIBUTE_UNUSED,
- bool enable ATTRIBUTE_UNUSED)
+int virNetDevBridgeSetSTP(const char *brname G_GNUC_UNUSED,
+ bool enable G_GNUC_UNUSED)
{
/* FreeBSD doesn't allow to set STP per bridge,
return 0;
}
int virNetDevBridgeGetSTP(const char *brname,
- bool *enable ATTRIBUTE_UNUSED)
+ bool *enable G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS,
_("Unable to get STP on %s on this platform"),
}
#else
int virNetDevBridgeSetSTPDelay(const char *brname,
- int delay ATTRIBUTE_UNUSED)
+ int delay G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS,
_("Unable to set STP delay on %s on this platform"),
return -1;
}
int virNetDevBridgeGetSTPDelay(const char *brname,
- int *delay ATTRIBUTE_UNUSED)
+ int *delay G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS,
_("Unable to get STP delay on %s on this platform"),
}
int virNetDevBridgeSetSTP(const char *brname,
- bool enable ATTRIBUTE_UNUSED)
+ bool enable G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS,
return -1;
}
int virNetDevBridgeGetSTP(const char *brname,
- bool *enable ATTRIBUTE_UNUSED)
+ bool *enable G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS,
_("Unable to get STP on %s on this platform"),
#else
int
-virNetDevBridgeGetVlanFiltering(const char *brname ATTRIBUTE_UNUSED,
- bool *enable ATTRIBUTE_UNUSED)
+virNetDevBridgeGetVlanFiltering(const char *brname G_GNUC_UNUSED,
+ bool *enable G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Unable to get bridge vlan_filtering on this platform"));
int
-virNetDevBridgeSetVlanFiltering(const char *brname ATTRIBUTE_UNUSED,
- bool enable ATTRIBUTE_UNUSED)
+virNetDevBridgeSetVlanFiltering(const char *brname G_GNUC_UNUSED,
+ bool enable G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Unable to set bridge vlan_filtering on this platform"));
#else
static int
-virNetDevBridgeFDBAddDel(const virMacAddr *mac ATTRIBUTE_UNUSED,
- const char *ifname ATTRIBUTE_UNUSED,
- unsigned int fdbFlags ATTRIBUTE_UNUSED,
- bool isAdd ATTRIBUTE_UNUSED)
+virNetDevBridgeFDBAddDel(const virMacAddr *mac G_GNUC_UNUSED,
+ const char *ifname G_GNUC_UNUSED,
+ unsigned int fdbFlags G_GNUC_UNUSED,
+ bool isAdd G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Unable to add/delete fdb entries on this platform"));
/* return after DAD finishes for all known IPv6 addresses or an error */
int
-virNetDevIPWaitDadFinish(virSocketAddrPtr *addrs ATTRIBUTE_UNUSED,
- size_t count ATTRIBUTE_UNUSED)
+virNetDevIPWaitDadFinish(virSocketAddrPtr *addrs G_GNUC_UNUSED,
+ size_t count G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Unable to wait for IPv6 DAD on this platform"));
#else /* ! SIOCGIFADDR */
static int
-virNetDevGetIPv4AddressIoctl(const char *ifname ATTRIBUTE_UNUSED,
- virSocketAddrPtr addr ATTRIBUTE_UNUSED)
+virNetDevGetIPv4AddressIoctl(const char *ifname G_GNUC_UNUSED,
+ virSocketAddrPtr addr G_GNUC_UNUSED)
{
return -2;
}
#else /* ! HAVE_GETIFADDRS */
static int
-virNetDevGetifaddrsAddress(const char *ifname ATTRIBUTE_UNUSED,
- virSocketAddrPtr addr ATTRIBUTE_UNUSED)
+virNetDevGetifaddrsAddress(const char *ifname G_GNUC_UNUSED,
+ virSocketAddrPtr addr G_GNUC_UNUSED)
{
return -2;
}
* data, and the opaque object itself.
*/
static void
-virNetDevMacVLanVPortProfileDestroyCallback(int watch ATTRIBUTE_UNUSED,
- const virMacAddr *macaddr ATTRIBUTE_UNUSED,
+virNetDevMacVLanVPortProfileDestroyCallback(int watch G_GNUC_UNUSED,
+ const virMacAddr *macaddr G_GNUC_UNUSED,
void *opaque)
{
virNetlinkCallbackDataFree((virNetlinkCallbackDataPtr)opaque);
}
#else /* ! WITH_MACVTAP */
-bool virNetDevMacVLanIsMacvtap(const char *ifname ATTRIBUTE_UNUSED)
+bool virNetDevMacVLanIsMacvtap(const char *ifname G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Cannot create macvlan devices on this platform"));
return false;
}
-int virNetDevMacVLanCreate(const char *ifname ATTRIBUTE_UNUSED,
- const char *type ATTRIBUTE_UNUSED,
- const virMacAddr *macaddress ATTRIBUTE_UNUSED,
- const char *srcdev ATTRIBUTE_UNUSED,
- uint32_t macvlan_mode ATTRIBUTE_UNUSED,
- int *retry ATTRIBUTE_UNUSED)
+int virNetDevMacVLanCreate(const char *ifname G_GNUC_UNUSED,
+ const char *type G_GNUC_UNUSED,
+ const virMacAddr *macaddress G_GNUC_UNUSED,
+ const char *srcdev G_GNUC_UNUSED,
+ uint32_t macvlan_mode G_GNUC_UNUSED,
+ int *retry G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Cannot create macvlan devices on this platform"));
return -1;
}
-int virNetDevMacVLanDelete(const char *ifname ATTRIBUTE_UNUSED)
+int virNetDevMacVLanDelete(const char *ifname G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Cannot create macvlan devices on this platform"));
}
int
-virNetDevMacVLanTapOpen(const char *ifname ATTRIBUTE_UNUSED,
- int *tapfd ATTRIBUTE_UNUSED,
- size_t tapfdSize ATTRIBUTE_UNUSED)
+virNetDevMacVLanTapOpen(const char *ifname G_GNUC_UNUSED,
+ int *tapfd G_GNUC_UNUSED,
+ size_t tapfdSize G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Cannot create macvlan devices on this platform"));
}
int
-virNetDevMacVLanTapSetup(int *tapfd ATTRIBUTE_UNUSED,
- size_t tapfdSize ATTRIBUTE_UNUSED,
- bool vnet_hdr ATTRIBUTE_UNUSED)
+virNetDevMacVLanTapSetup(int *tapfd G_GNUC_UNUSED,
+ size_t tapfdSize G_GNUC_UNUSED,
+ bool vnet_hdr G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Cannot create macvlan devices on this platform"));
return -1;
}
-int virNetDevMacVLanCreateWithVPortProfile(const char *ifname ATTRIBUTE_UNUSED,
- const virMacAddr *macaddress ATTRIBUTE_UNUSED,
- const char *linkdev ATTRIBUTE_UNUSED,
- virNetDevMacVLanMode mode ATTRIBUTE_UNUSED,
- virNetDevVlanPtr vlan ATTRIBUTE_UNUSED,
- const unsigned char *vmuuid ATTRIBUTE_UNUSED,
- virNetDevVPortProfilePtr virtPortProfile ATTRIBUTE_UNUSED,
- char **res_ifname ATTRIBUTE_UNUSED,
- virNetDevVPortProfileOp vmop ATTRIBUTE_UNUSED,
- char *stateDir ATTRIBUTE_UNUSED,
- int *tapfd ATTRIBUTE_UNUSED,
- size_t tapfdSize ATTRIBUTE_UNUSED,
- unsigned int unused_flags ATTRIBUTE_UNUSED)
+int virNetDevMacVLanCreateWithVPortProfile(const char *ifname G_GNUC_UNUSED,
+ const virMacAddr *macaddress G_GNUC_UNUSED,
+ const char *linkdev G_GNUC_UNUSED,
+ virNetDevMacVLanMode mode G_GNUC_UNUSED,
+ virNetDevVlanPtr vlan G_GNUC_UNUSED,
+ const unsigned char *vmuuid G_GNUC_UNUSED,
+ virNetDevVPortProfilePtr virtPortProfile G_GNUC_UNUSED,
+ char **res_ifname G_GNUC_UNUSED,
+ virNetDevVPortProfileOp vmop G_GNUC_UNUSED,
+ char *stateDir G_GNUC_UNUSED,
+ int *tapfd G_GNUC_UNUSED,
+ size_t tapfdSize G_GNUC_UNUSED,
+ unsigned int unused_flags G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Cannot create macvlan devices on this platform"));
return -1;
}
-int virNetDevMacVLanDeleteWithVPortProfile(const char *ifname ATTRIBUTE_UNUSED,
- const virMacAddr *macaddress ATTRIBUTE_UNUSED,
- const char *linkdev ATTRIBUTE_UNUSED,
- int mode ATTRIBUTE_UNUSED,
- virNetDevVPortProfilePtr virtPortProfile ATTRIBUTE_UNUSED,
- char *stateDir ATTRIBUTE_UNUSED)
+int virNetDevMacVLanDeleteWithVPortProfile(const char *ifname G_GNUC_UNUSED,
+ const virMacAddr *macaddress G_GNUC_UNUSED,
+ const char *linkdev G_GNUC_UNUSED,
+ int mode G_GNUC_UNUSED,
+ virNetDevVPortProfilePtr virtPortProfile G_GNUC_UNUSED,
+ char *stateDir G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Cannot create macvlan devices on this platform"));
return -1;
}
-int virNetDevMacVLanRestartWithVPortProfile(const char *cr_ifname ATTRIBUTE_UNUSED,
- const virMacAddr *macaddress ATTRIBUTE_UNUSED,
- const char *linkdev ATTRIBUTE_UNUSED,
- const unsigned char *vmuuid ATTRIBUTE_UNUSED,
- virNetDevVPortProfilePtr virtPortProfile ATTRIBUTE_UNUSED,
- virNetDevVPortProfileOp vmOp ATTRIBUTE_UNUSED)
+int virNetDevMacVLanRestartWithVPortProfile(const char *cr_ifname G_GNUC_UNUSED,
+ const virMacAddr *macaddress G_GNUC_UNUSED,
+ const char *linkdev G_GNUC_UNUSED,
+ const unsigned char *vmuuid G_GNUC_UNUSED,
+ virNetDevVPortProfilePtr virtPortProfile G_GNUC_UNUSED,
+ virNetDevVPortProfileOp vmOp G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Cannot create macvlan devices on this platform"));
return -1;
}
-int virNetDevMacVLanVPortProfileRegisterCallback(const char *ifname ATTRIBUTE_UNUSED,
- const virMacAddr *macaddress ATTRIBUTE_UNUSED,
- const char *linkdev ATTRIBUTE_UNUSED,
- const unsigned char *vmuuid ATTRIBUTE_UNUSED,
- virNetDevVPortProfilePtr virtPortProfile ATTRIBUTE_UNUSED,
- virNetDevVPortProfileOp vmOp ATTRIBUTE_UNUSED)
+int virNetDevMacVLanVPortProfileRegisterCallback(const char *ifname G_GNUC_UNUSED,
+ const virMacAddr *macaddress G_GNUC_UNUSED,
+ const char *linkdev G_GNUC_UNUSED,
+ const unsigned char *vmuuid G_GNUC_UNUSED,
+ virNetDevVPortProfilePtr virtPortProfile G_GNUC_UNUSED,
+ virNetDevVPortProfileOp vmOp G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Cannot create macvlan devices on this platform"));
return -1;
}
-int virNetDevMacVLanReleaseName(const char *name ATTRIBUTE_UNUSED)
+int virNetDevMacVLanReleaseName(const char *name G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Cannot create macvlan devices on this platform"));
return -1;
}
-int virNetDevMacVLanReserveName(const char *name ATTRIBUTE_UNUSED,
- bool quietFail ATTRIBUTE_UNUSED)
+int virNetDevMacVLanReserveName(const char *name G_GNUC_UNUSED,
+ bool quietFail G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Cannot create macvlan devices on this platform"));
*
* Returns 0 in case of success or -1 in case of failure.
*/
-int virNetDevOpenvswitchRemovePort(const char *brname ATTRIBUTE_UNUSED, const char *ifname)
+int virNetDevOpenvswitchRemovePort(const char *brname G_GNUC_UNUSED, const char *ifname)
{
VIR_AUTOPTR(virCommand) cmd = NULL;
* Returns 0 if the interface name is successfully queried, -1 otherwise
*/
int
-virNetDevTapGetName(int tapfd ATTRIBUTE_UNUSED, char **ifname ATTRIBUTE_UNUSED)
+virNetDevTapGetName(int tapfd G_GNUC_UNUSED, char **ifname G_GNUC_UNUSED)
{
#ifdef TUNGETIFF
struct ifreq ifr;
* found.
*/
char*
-virNetDevTapGetRealDeviceName(char *ifname ATTRIBUTE_UNUSED)
+virNetDevTapGetRealDeviceName(char *ifname G_GNUC_UNUSED)
{
#ifdef IFDATA_DRIVERNAME
int ifindex = 0;
}
#elif defined(SIOCIFCREATE2) && defined(SIOCIFDESTROY) && defined(IF_MAXUNIT)
int virNetDevTapCreate(char **ifname,
- const char *tunpath ATTRIBUTE_UNUSED,
+ const char *tunpath G_GNUC_UNUSED,
int *tapfd,
size_t tapfdSize,
- unsigned int flags ATTRIBUTE_UNUSED)
+ unsigned int flags G_GNUC_UNUSED)
{
int s;
struct ifreq ifr;
}
int virNetDevTapDelete(const char *ifname,
- const char *tunpath ATTRIBUTE_UNUSED)
+ const char *tunpath G_GNUC_UNUSED)
{
int s;
struct ifreq ifr;
}
#else
-int virNetDevTapCreate(char **ifname ATTRIBUTE_UNUSED,
- const char *tunpath ATTRIBUTE_UNUSED,
- int *tapfd ATTRIBUTE_UNUSED,
- size_t tapfdSize ATTRIBUTE_UNUSED,
- unsigned int flags ATTRIBUTE_UNUSED)
+int virNetDevTapCreate(char **ifname G_GNUC_UNUSED,
+ const char *tunpath G_GNUC_UNUSED,
+ int *tapfd G_GNUC_UNUSED,
+ size_t tapfdSize G_GNUC_UNUSED,
+ unsigned int flags G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Unable to create TAP devices on this platform"));
return -1;
}
-int virNetDevTapDelete(const char *ifname ATTRIBUTE_UNUSED,
- const char *tunpath ATTRIBUTE_UNUSED)
+int virNetDevTapDelete(const char *ifname G_GNUC_UNUSED,
+ const char *tunpath G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Unable to delete TAP devices on this platform"));
}
#else
int
-virNetDevTapInterfaceStats(const char *ifname ATTRIBUTE_UNUSED,
- virDomainInterfaceStatsPtr stats ATTRIBUTE_UNUSED,
- bool swapped ATTRIBUTE_UNUSED)
+virNetDevTapInterfaceStats(const char *ifname G_GNUC_UNUSED,
+ virDomainInterfaceStatsPtr stats G_GNUC_UNUSED,
+ bool swapped G_GNUC_UNUSED)
{
virReportError(VIR_ERR_OPERATION_INVALID, "%s",
_("interface stats not implemented on this platform"));
}
#else /* ! WITH_VIRTUALPORT */
-int virNetDevVPortProfileAssociate(const char *macvtap_ifname ATTRIBUTE_UNUSED,
- const virNetDevVPortProfile *virtPort ATTRIBUTE_UNUSED,
- const virMacAddr *macvtap_macaddr ATTRIBUTE_UNUSED,
- const char *linkdev ATTRIBUTE_UNUSED,
- int vf ATTRIBUTE_UNUSED,
- const unsigned char *vmuuid ATTRIBUTE_UNUSED,
- virNetDevVPortProfileOp vmOp ATTRIBUTE_UNUSED,
- bool setlink_only ATTRIBUTE_UNUSED)
+int virNetDevVPortProfileAssociate(const char *macvtap_ifname G_GNUC_UNUSED,
+ const virNetDevVPortProfile *virtPort G_GNUC_UNUSED,
+ const virMacAddr *macvtap_macaddr G_GNUC_UNUSED,
+ const char *linkdev G_GNUC_UNUSED,
+ int vf G_GNUC_UNUSED,
+ const unsigned char *vmuuid G_GNUC_UNUSED,
+ virNetDevVPortProfileOp vmOp G_GNUC_UNUSED,
+ bool setlink_only G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Virtual port profile association not supported on this platform"));
return -1;
}
-int virNetDevVPortProfileDisassociate(const char *macvtap_ifname ATTRIBUTE_UNUSED,
- const virNetDevVPortProfile *virtPort ATTRIBUTE_UNUSED,
- const virMacAddr *macvtap_macaddr ATTRIBUTE_UNUSED,
- const char *linkdev ATTRIBUTE_UNUSED,
- int vf ATTRIBUTE_UNUSED,
- virNetDevVPortProfileOp vmOp ATTRIBUTE_UNUSED)
+int virNetDevVPortProfileDisassociate(const char *macvtap_ifname G_GNUC_UNUSED,
+ const virNetDevVPortProfile *virtPort G_GNUC_UNUSED,
+ const virMacAddr *macvtap_macaddr G_GNUC_UNUSED,
+ const char *linkdev G_GNUC_UNUSED,
+ int vf G_GNUC_UNUSED,
+ virNetDevVPortProfileOp vmOp G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Virtual port profile association not supported on this platform"));
static void
virNetlinkEventCallback(int watch,
- int fd ATTRIBUTE_UNUSED,
- int events ATTRIBUTE_UNUSED,
+ int fd G_GNUC_UNUSED,
+ int events G_GNUC_UNUSED,
void *opaque)
{
virNetlinkEventSrvPrivatePtr srv = opaque;
return;
}
-int virNetlinkCommand(struct nl_msg *nl_msg ATTRIBUTE_UNUSED,
- struct nlmsghdr **resp ATTRIBUTE_UNUSED,
- unsigned int *respbuflen ATTRIBUTE_UNUSED,
- uint32_t src_pid ATTRIBUTE_UNUSED,
- uint32_t dst_pid ATTRIBUTE_UNUSED,
- unsigned int protocol ATTRIBUTE_UNUSED,
- unsigned int groups ATTRIBUTE_UNUSED)
+int virNetlinkCommand(struct nl_msg *nl_msg G_GNUC_UNUSED,
+ struct nlmsghdr **resp G_GNUC_UNUSED,
+ unsigned int *respbuflen G_GNUC_UNUSED,
+ uint32_t src_pid G_GNUC_UNUSED,
+ uint32_t dst_pid G_GNUC_UNUSED,
+ unsigned int protocol G_GNUC_UNUSED,
+ unsigned int groups G_GNUC_UNUSED)
{
virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _(unsupported));
return -1;
}
int
-virNetlinkDumpCommand(struct nl_msg *nl_msg ATTRIBUTE_UNUSED,
- virNetlinkDumpCallback callback ATTRIBUTE_UNUSED,
- uint32_t src_pid ATTRIBUTE_UNUSED,
- uint32_t dst_pid ATTRIBUTE_UNUSED,
- unsigned int protocol ATTRIBUTE_UNUSED,
- unsigned int groups ATTRIBUTE_UNUSED,
- void *opaque ATTRIBUTE_UNUSED)
+virNetlinkDumpCommand(struct nl_msg *nl_msg G_GNUC_UNUSED,
+ virNetlinkDumpCallback callback G_GNUC_UNUSED,
+ uint32_t src_pid G_GNUC_UNUSED,
+ uint32_t dst_pid G_GNUC_UNUSED,
+ unsigned int protocol G_GNUC_UNUSED,
+ unsigned int groups G_GNUC_UNUSED,
+ void *opaque G_GNUC_UNUSED)
{
virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _(unsupported));
return -1;
}
int
-virNetlinkDumpLink(const char *ifname ATTRIBUTE_UNUSED,
- int ifindex ATTRIBUTE_UNUSED,
- void **nlData ATTRIBUTE_UNUSED,
- struct nlattr **tb ATTRIBUTE_UNUSED,
- uint32_t src_pid ATTRIBUTE_UNUSED,
- uint32_t dst_pid ATTRIBUTE_UNUSED)
+virNetlinkDumpLink(const char *ifname G_GNUC_UNUSED,
+ int ifindex G_GNUC_UNUSED,
+ void **nlData G_GNUC_UNUSED,
+ struct nlattr **tb G_GNUC_UNUSED,
+ uint32_t src_pid G_GNUC_UNUSED,
+ uint32_t dst_pid G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Unable to dump link info on this platform"));
int
-virNetlinkDelLink(const char *ifname ATTRIBUTE_UNUSED,
- virNetlinkDelLinkFallback fallback ATTRIBUTE_UNUSED)
+virNetlinkDelLink(const char *ifname G_GNUC_UNUSED,
+ virNetlinkDelLinkFallback fallback G_GNUC_UNUSED)
{
virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _(unsupported));
return -1;
int
-virNetlinkNewLink(const char *ifname ATTRIBUTE_UNUSED,
- const char *type ATTRIBUTE_UNUSED,
- virNetlinkNewLinkDataPtr extra_args ATTRIBUTE_UNUSED,
- int *error ATTRIBUTE_UNUSED)
+virNetlinkNewLink(const char *ifname G_GNUC_UNUSED,
+ const char *type G_GNUC_UNUSED,
+ virNetlinkNewLinkDataPtr extra_args G_GNUC_UNUSED,
+ int *error G_GNUC_UNUSED)
{
virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _(unsupported));
return -1;
int
-virNetlinkGetNeighbor(void **nlData ATTRIBUTE_UNUSED,
- uint32_t src_pid ATTRIBUTE_UNUSED,
- uint32_t dst_pid ATTRIBUTE_UNUSED)
+virNetlinkGetNeighbor(void **nlData G_GNUC_UNUSED,
+ uint32_t src_pid G_GNUC_UNUSED,
+ uint32_t dst_pid G_GNUC_UNUSED)
{
virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _(unsupported));
return -1;
* stopNetlinkEventServer: stop the monitor to receive netlink
* messages for libvirtd
*/
-int virNetlinkEventServiceStop(unsigned int protocol ATTRIBUTE_UNUSED)
+int virNetlinkEventServiceStop(unsigned int protocol G_GNUC_UNUSED)
{
VIR_DEBUG("%s", _(unsupported));
return 0;
* startNetlinkEventServer: start a monitor to receive netlink
* messages for libvirtd
*/
-int virNetlinkEventServiceStart(unsigned int protocol ATTRIBUTE_UNUSED,
- unsigned int groups ATTRIBUTE_UNUSED)
+int virNetlinkEventServiceStart(unsigned int protocol G_GNUC_UNUSED,
+ unsigned int groups G_GNUC_UNUSED)
{
VIR_DEBUG("%s", _(unsupported));
return 0;
* virNetlinkEventServiceIsRunning: returns if the netlink event
* service is running.
*/
-bool virNetlinkEventServiceIsRunning(unsigned int protocol ATTRIBUTE_UNUSED)
+bool virNetlinkEventServiceIsRunning(unsigned int protocol G_GNUC_UNUSED)
{
virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _(unsupported));
return 0;
}
-int virNetlinkEventServiceLocalPid(unsigned int protocol ATTRIBUTE_UNUSED)
+int virNetlinkEventServiceLocalPid(unsigned int protocol G_GNUC_UNUSED)
{
virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _(unsupported));
return -1;
* virNetlinkEventAddClient: register a callback for handling of
* netlink messages
*/
-int virNetlinkEventAddClient(virNetlinkEventHandleCallback handleCB ATTRIBUTE_UNUSED,
- virNetlinkEventRemoveCallback removeCB ATTRIBUTE_UNUSED,
- void *opaque ATTRIBUTE_UNUSED,
- const virMacAddr *macaddr ATTRIBUTE_UNUSED,
- unsigned int protocol ATTRIBUTE_UNUSED)
+int virNetlinkEventAddClient(virNetlinkEventHandleCallback handleCB G_GNUC_UNUSED,
+ virNetlinkEventRemoveCallback removeCB G_GNUC_UNUSED,
+ void *opaque G_GNUC_UNUSED,
+ const virMacAddr *macaddr G_GNUC_UNUSED,
+ unsigned int protocol G_GNUC_UNUSED)
{
virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _(unsupported));
return -1;
/**
* virNetlinkEventRemoveClient: unregister a callback from a netlink monitor
*/
-int virNetlinkEventRemoveClient(int watch ATTRIBUTE_UNUSED,
- const virMacAddr *macaddr ATTRIBUTE_UNUSED,
- unsigned int protocol ATTRIBUTE_UNUSED)
+int virNetlinkEventRemoveClient(int watch G_GNUC_UNUSED,
+ const virMacAddr *macaddr G_GNUC_UNUSED,
+ unsigned int protocol G_GNUC_UNUSED)
{
virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _(unsupported));
return -1;
int
-virNetlinkGetErrorCode(struct nlmsghdr *resp ATTRIBUTE_UNUSED,
- unsigned int recvbuflen ATTRIBUTE_UNUSED)
+virNetlinkGetErrorCode(struct nlmsghdr *resp G_GNUC_UNUSED,
+ unsigned int recvbuflen G_GNUC_UNUSED)
{
virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _(unsupported));
return -EINVAL;
}
#else /* ! WITH_PM_UTILS */
static int
-virNodeSuspendSupportsTargetPMUtils(unsigned int target ATTRIBUTE_UNUSED,
- bool *supported ATTRIBUTE_UNUSED)
+virNodeSuspendSupportsTargetPMUtils(unsigned int target G_GNUC_UNUSED,
+ bool *supported G_GNUC_UNUSED)
{
return -2;
}
}
#else /* !HAVE_NUMAD */
char *
-virNumaGetAutoPlacementAdvice(unsigned short vcpus ATTRIBUTE_UNUSED,
- unsigned long long balloon ATTRIBUTE_UNUSED)
+virNumaGetAutoPlacementAdvice(unsigned short vcpus G_GNUC_UNUSED,
+ unsigned long long balloon G_GNUC_UNUSED)
{
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
_("numad is not available on this host"));
#else /* !WITH_NUMACTL */
int
-virNumaSetupMemoryPolicy(virDomainNumatuneMemMode mode ATTRIBUTE_UNUSED,
+virNumaSetupMemoryPolicy(virDomainNumatuneMemMode mode G_GNUC_UNUSED,
virBitmapPtr nodeset)
{
if (!virNumaNodesetIsAvailable(nodeset))
int
-virNumaGetNodeMemory(int node ATTRIBUTE_UNUSED,
+virNumaGetNodeMemory(int node G_GNUC_UNUSED,
unsigned long long *memsize,
unsigned long long *memfree)
{
int
-virNumaGetNodeCPUs(int node ATTRIBUTE_UNUSED,
+virNumaGetNodeCPUs(int node G_GNUC_UNUSED,
virBitmapPtr *cpus)
{
*cpus = NULL;
}
int
-virNumaNodesetToCPUset(virBitmapPtr nodeset ATTRIBUTE_UNUSED,
+virNumaNodesetToCPUset(virBitmapPtr nodeset G_GNUC_UNUSED,
virBitmapPtr *cpuset)
{
*cpuset = NULL;
int
-virNumaGetDistances(int node ATTRIBUTE_UNUSED,
+virNumaGetDistances(int node G_GNUC_UNUSED,
int **distances,
int *ndistances)
{
#else /* #ifdef __linux__ */
int
-virNumaGetPageInfo(int node ATTRIBUTE_UNUSED,
- unsigned int page_size ATTRIBUTE_UNUSED,
- unsigned long long huge_page_sum ATTRIBUTE_UNUSED,
- unsigned long long *page_avail ATTRIBUTE_UNUSED,
- unsigned long long *page_free ATTRIBUTE_UNUSED)
+virNumaGetPageInfo(int node G_GNUC_UNUSED,
+ unsigned int page_size G_GNUC_UNUSED,
+ unsigned long long huge_page_sum G_GNUC_UNUSED,
+ unsigned long long *page_avail G_GNUC_UNUSED,
+ unsigned long long *page_free G_GNUC_UNUSED)
{
virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s",
_("page info is not supported on this platform"));
int
-virNumaGetPages(int node ATTRIBUTE_UNUSED,
- unsigned int **pages_size ATTRIBUTE_UNUSED,
- unsigned long long **pages_avail ATTRIBUTE_UNUSED,
- unsigned long long **pages_free ATTRIBUTE_UNUSED,
- size_t *npages ATTRIBUTE_UNUSED)
+virNumaGetPages(int node G_GNUC_UNUSED,
+ unsigned int **pages_size G_GNUC_UNUSED,
+ unsigned long long **pages_avail G_GNUC_UNUSED,
+ unsigned long long **pages_free G_GNUC_UNUSED,
+ size_t *npages G_GNUC_UNUSED)
{
virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s",
_("page info is not supported on this platform"));
int
-virNumaSetPagePoolSize(int node ATTRIBUTE_UNUSED,
- unsigned int page_size ATTRIBUTE_UNUSED,
- unsigned long long page_count ATTRIBUTE_UNUSED,
- bool add ATTRIBUTE_UNUSED)
+virNumaSetPagePoolSize(int node G_GNUC_UNUSED,
+ unsigned int page_size G_GNUC_UNUSED,
+ unsigned long long page_count G_GNUC_UNUSED,
+ bool add G_GNUC_UNUSED)
{
virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s",
_("page pool allocation is not supported on this platform"));
*/
void
virObjectFreeHashData(void *opaque,
- const void *name ATTRIBUTE_UNUSED)
+ const void *name G_GNUC_UNUSED)
{
virObjectUnref(opaque);
}
static const char *unsupported = N_("not supported on non-linux platforms");
virPCIDeviceAddressPtr
-virPCIGetDeviceAddressFromSysfsLink(const char *device_link ATTRIBUTE_UNUSED)
+virPCIGetDeviceAddressFromSysfsLink(const char *device_link G_GNUC_UNUSED)
{
virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _(unsupported));
return NULL;
int
-virPCIGetPhysicalFunction(const char *vf_sysfs_path ATTRIBUTE_UNUSED,
- virPCIDeviceAddressPtr *pf ATTRIBUTE_UNUSED)
+virPCIGetPhysicalFunction(const char *vf_sysfs_path G_GNUC_UNUSED,
+ virPCIDeviceAddressPtr *pf G_GNUC_UNUSED)
{
virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _(unsupported));
return -1;
}
int
-virPCIGetVirtualFunctions(const char *sysfs_path ATTRIBUTE_UNUSED,
- virPCIDeviceAddressPtr **virtual_functions ATTRIBUTE_UNUSED,
- size_t *num_virtual_functions ATTRIBUTE_UNUSED,
- unsigned int *max_virtual_functions ATTRIBUTE_UNUSED)
+virPCIGetVirtualFunctions(const char *sysfs_path G_GNUC_UNUSED,
+ virPCIDeviceAddressPtr **virtual_functions G_GNUC_UNUSED,
+ size_t *num_virtual_functions G_GNUC_UNUSED,
+ unsigned int *max_virtual_functions G_GNUC_UNUSED)
{
virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _(unsupported));
return -1;
}
int
-virPCIIsVirtualFunction(const char *vf_sysfs_device_link ATTRIBUTE_UNUSED)
+virPCIIsVirtualFunction(const char *vf_sysfs_device_link G_GNUC_UNUSED)
{
virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _(unsupported));
return -1;
}
int
-virPCIGetVirtualFunctionIndex(const char *pf_sysfs_device_link ATTRIBUTE_UNUSED,
- const char *vf_sysfs_device_link ATTRIBUTE_UNUSED,
- int *vf_index ATTRIBUTE_UNUSED)
+virPCIGetVirtualFunctionIndex(const char *pf_sysfs_device_link G_GNUC_UNUSED,
+ const char *vf_sysfs_device_link G_GNUC_UNUSED,
+ int *vf_index G_GNUC_UNUSED)
{
virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _(unsupported));
return -1;
}
int
-virPCIGetSysfsFile(char *virPCIDeviceName ATTRIBUTE_UNUSED,
- char **pci_sysfs_device_link ATTRIBUTE_UNUSED)
+virPCIGetSysfsFile(char *virPCIDeviceName G_GNUC_UNUSED,
+ char **pci_sysfs_device_link G_GNUC_UNUSED)
{
virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _(unsupported));
return -1;
}
int
-virPCIDeviceAddressGetSysfsFile(virPCIDeviceAddressPtr dev ATTRIBUTE_UNUSED,
- char **pci_sysfs_device_link ATTRIBUTE_UNUSED)
+virPCIDeviceAddressGetSysfsFile(virPCIDeviceAddressPtr dev G_GNUC_UNUSED,
+ char **pci_sysfs_device_link G_GNUC_UNUSED)
{
virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _(unsupported));
return -1;
}
int
-virPCIGetNetName(const char *device_link_sysfs_path ATTRIBUTE_UNUSED,
- size_t idx ATTRIBUTE_UNUSED,
- char *physPortID ATTRIBUTE_UNUSED,
- char **netname ATTRIBUTE_UNUSED)
+virPCIGetNetName(const char *device_link_sysfs_path G_GNUC_UNUSED,
+ size_t idx G_GNUC_UNUSED,
+ char *physPortID G_GNUC_UNUSED,
+ char **netname G_GNUC_UNUSED)
{
virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _(unsupported));
return -1;
}
int
-virPCIGetVirtualFunctionInfo(const char *vf_sysfs_device_path ATTRIBUTE_UNUSED,
- int pfNetDevIdx ATTRIBUTE_UNUSED,
- char **pfname ATTRIBUTE_UNUSED,
- int *vf_index ATTRIBUTE_UNUSED)
+virPCIGetVirtualFunctionInfo(const char *vf_sysfs_device_path G_GNUC_UNUSED,
+ int pfNetDevIdx G_GNUC_UNUSED,
+ char **pfname G_GNUC_UNUSED,
+ int *vf_index G_GNUC_UNUSED)
{
virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _(unsupported));
return -1;
ssize_t
-virPCIGetMdevTypes(const char *sysfspath ATTRIBUTE_UNUSED,
- virMediatedDeviceTypePtr **types ATTRIBUTE_UNUSED)
+virPCIGetMdevTypes(const char *sysfspath G_GNUC_UNUSED,
+ virMediatedDeviceTypePtr **types G_GNUC_UNUSED)
{
virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _(unsupported));
return -1;
int
-virPerfEventEnable(virPerfPtr perf ATTRIBUTE_UNUSED,
- virPerfEventType type ATTRIBUTE_UNUSED,
- pid_t pid ATTRIBUTE_UNUSED)
+virPerfEventEnable(virPerfPtr perf G_GNUC_UNUSED,
+ virPerfEventType type G_GNUC_UNUSED,
+ pid_t pid G_GNUC_UNUSED)
{
virReportSystemError(ENXIO, "%s",
_("Perf not supported on this platform"));
}
int
-virPerfEventDisable(virPerfPtr perf ATTRIBUTE_UNUSED,
- virPerfEventType type ATTRIBUTE_UNUSED)
+virPerfEventDisable(virPerfPtr perf G_GNUC_UNUSED,
+ virPerfEventType type G_GNUC_UNUSED)
{
virReportSystemError(ENXIO, "%s",
_("Perf not supported on this platform"));
}
bool
-virPerfEventIsEnabled(virPerfPtr perf ATTRIBUTE_UNUSED,
- virPerfEventType type ATTRIBUTE_UNUSED)
+virPerfEventIsEnabled(virPerfPtr perf G_GNUC_UNUSED,
+ virPerfEventType type G_GNUC_UNUSED)
{
return false;
}
int
-virPerfReadEvent(virPerfPtr perf ATTRIBUTE_UNUSED,
- virPerfEventType type ATTRIBUTE_UNUSED,
- uint64_t *value ATTRIBUTE_UNUSED)
+virPerfReadEvent(virPerfPtr perf G_GNUC_UNUSED,
+ virPerfEventType type G_GNUC_UNUSED,
+ uint64_t *value G_GNUC_UNUSED)
{
virReportSystemError(ENXIO, "%s",
_("Perf not supported on this platform"));
* one that now exists on the filesystem
*/
if (stat(path, &a) < 0) {
- char ebuf[1024] ATTRIBUTE_UNUSED;
+ char ebuf[1024] G_GNUC_UNUSED;
VIR_DEBUG("Pid file '%s' disappeared: %s",
path, virStrerror(errno, ebuf, sizeof(ebuf)));
VIR_FORCE_CLOSE(fd);
#else /* ! WITH_POLKIT */
-int virPolkitCheckAuth(const char *actionid ATTRIBUTE_UNUSED,
- pid_t pid ATTRIBUTE_UNUSED,
- unsigned long long startTime ATTRIBUTE_UNUSED,
- uid_t uid ATTRIBUTE_UNUSED,
- const char **details ATTRIBUTE_UNUSED,
- bool allowInteraction ATTRIBUTE_UNUSED)
+int virPolkitCheckAuth(const char *actionid G_GNUC_UNUSED,
+ pid_t pid G_GNUC_UNUSED,
+ unsigned long long startTime G_GNUC_UNUSED,
+ uid_t uid G_GNUC_UNUSED,
+ const char **details G_GNUC_UNUSED,
+ bool allowInteraction G_GNUC_UNUSED)
{
VIR_ERROR(_("Polkit auth attempted, even though polkit is not available"));
virReportError(VIR_ERR_AUTH_FAILED, "%s",
void
-virPolkitAgentDestroy(virPolkitAgentPtr agent ATTRIBUTE_UNUSED)
+virPolkitAgentDestroy(virPolkitAgentPtr agent G_GNUC_UNUSED)
{
return; /* do nothing */
}
# endif
# endif
#else /* !__linux__ */
-static inline int setns(int fd ATTRIBUTE_UNUSED, int nstype ATTRIBUTE_UNUSED)
+static inline int setns(int fd G_GNUC_UNUSED, int nstype G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Namespaces are not supported on this platform."));
#else /* HAVE_SCHED_GETAFFINITY */
-int virProcessSetAffinity(pid_t pid ATTRIBUTE_UNUSED,
- virBitmapPtr map ATTRIBUTE_UNUSED)
+int virProcessSetAffinity(pid_t pid G_GNUC_UNUSED,
+ virBitmapPtr map G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Process CPU affinity is not supported on this platform"));
}
virBitmapPtr
-virProcessGetAffinity(pid_t pid ATTRIBUTE_UNUSED)
+virProcessGetAffinity(pid_t pid G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Process CPU affinity is not supported on this platform"));
}
#elif HAVE_SETRLIMIT
static int
-virProcessPrLimit(pid_t pid ATTRIBUTE_UNUSED,
- int resource ATTRIBUTE_UNUSED,
- const struct rlimit *new_limit ATTRIBUTE_UNUSED,
- struct rlimit *old_limit ATTRIBUTE_UNUSED)
+virProcessPrLimit(pid_t pid G_GNUC_UNUSED,
+ int resource G_GNUC_UNUSED,
+ const struct rlimit *new_limit G_GNUC_UNUSED,
+ struct rlimit *old_limit G_GNUC_UNUSED)
{
errno = ENOSYS;
return -1;
}
#else /* ! (HAVE_SETRLIMIT && defined(RLIMIT_MEMLOCK)) */
int
-virProcessSetMaxMemLock(pid_t pid ATTRIBUTE_UNUSED, unsigned long long bytes)
+virProcessSetMaxMemLock(pid_t pid G_GNUC_UNUSED, unsigned long long bytes)
{
if (bytes == 0)
return 0;
}
#else /* ! (HAVE_GETRLIMIT && defined(RLIMIT_MEMLOCK)) */
int
-virProcessGetMaxMemLock(pid_t pid ATTRIBUTE_UNUSED,
+virProcessGetMaxMemLock(pid_t pid G_GNUC_UNUSED,
unsigned long long *bytes)
{
if (!bytes)
}
#else /* ! (HAVE_SETRLIMIT && defined(RLIMIT_NPROC)) */
int
-virProcessSetMaxProcesses(pid_t pid ATTRIBUTE_UNUSED, unsigned int procs)
+virProcessSetMaxProcesses(pid_t pid G_GNUC_UNUSED, unsigned int procs)
{
if (procs == 0)
return 0;
}
#else /* ! (HAVE_SETRLIMIT && defined(RLIMIT_NOFILE)) */
int
-virProcessSetMaxFiles(pid_t pid ATTRIBUTE_UNUSED, unsigned int files)
+virProcessSetMaxFiles(pid_t pid G_GNUC_UNUSED, unsigned int files)
{
if (files == 0)
return 0;
}
#else /* ! (HAVE_SETRLIMIT && defined(RLIMIT_CORE)) */
int
-virProcessSetMaxCoreSize(pid_t pid ATTRIBUTE_UNUSED,
+virProcessSetMaxCoreSize(pid_t pid G_GNUC_UNUSED,
unsigned long long bytes)
{
if (bytes == 0)
void *opaque;
};
-static int virProcessNamespaceHelper(pid_t pid ATTRIBUTE_UNUSED,
+static int virProcessNamespaceHelper(pid_t pid G_GNUC_UNUSED,
void *opaque)
{
virProcessNamespaceHelperData *data = opaque;
#if defined(__linux__)
G_GNUC_NORETURN static int
-virProcessDummyChild(void *argv ATTRIBUTE_UNUSED)
+virProcessDummyChild(void *argv G_GNUC_UNUSED)
{
_exit(0);
}
cpid = clone(virProcessDummyChild, childStack, flags, NULL);
if (cpid < 0) {
- char ebuf[1024] ATTRIBUTE_UNUSED;
+ char ebuf[1024] G_GNUC_UNUSED;
VIR_DEBUG("clone call returned %s, container support is not enabled",
virStrerror(errno, ebuf, sizeof(ebuf)));
return -1;
#else /* !defined(__linux__) */
int
-virProcessNamespaceAvailable(unsigned int ns ATTRIBUTE_UNUSED)
+virProcessNamespaceAvailable(unsigned int ns G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
_("Namespaces are not supported on this platform."));
#else /* ! HAVE_SCHED_SETSCHEDULER */
int
-virProcessSetScheduler(pid_t pid ATTRIBUTE_UNUSED,
+virProcessSetScheduler(pid_t pid G_GNUC_UNUSED,
virProcessSchedPolicy policy,
- int priority ATTRIBUTE_UNUSED)
+ int priority G_GNUC_UNUSED)
{
if (!policy)
return 0;
#else
int
-virSCSIHostGetUniqueId(const char *sysfs_prefix ATTRIBUTE_UNUSED,
- int host ATTRIBUTE_UNUSED)
+virSCSIHostGetUniqueId(const char *sysfs_prefix G_GNUC_UNUSED,
+ int host G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s", _("Not supported on this platform"));
return -1;
}
char *
-virSCSIHostFindByPCI(const char *sysfs_prefix ATTRIBUTE_UNUSED,
- const char *parentaddr ATTRIBUTE_UNUSED,
- unsigned int unique_id ATTRIBUTE_UNUSED)
+virSCSIHostFindByPCI(const char *sysfs_prefix G_GNUC_UNUSED,
+ const char *parentaddr G_GNUC_UNUSED,
+ unsigned int unique_id G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s", _("Not supported on this platform"));
return NULL;
}
int
-virSCSIHostGetNumber(const char *adapter_name ATTRIBUTE_UNUSED,
- unsigned int *result ATTRIBUTE_UNUSED)
+virSCSIHostGetNumber(const char *adapter_name G_GNUC_UNUSED,
+ unsigned int *result G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s", _("Not supported on this platform"));
return -1;
}
char *
-virSCSIHostGetNameByParentaddr(unsigned int domain ATTRIBUTE_UNUSED,
- unsigned int bus ATTRIBUTE_UNUSED,
- unsigned int slot ATTRIBUTE_UNUSED,
- unsigned int function ATTRIBUTE_UNUSED,
- unsigned int unique_id ATTRIBUTE_UNUSED)
+virSCSIHostGetNameByParentaddr(unsigned int domain G_GNUC_UNUSED,
+ unsigned int bus G_GNUC_UNUSED,
+ unsigned int slot G_GNUC_UNUSED,
+ unsigned int function G_GNUC_UNUSED,
+ unsigned int unique_id G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s", _("Not supported on this platform"));
return NULL;
* address of type AF_UNIX;
*/
char *
-virSocketAddrGetPath(virSocketAddrPtr addr ATTRIBUTE_UNUSED)
+virSocketAddrGetPath(virSocketAddrPtr addr G_GNUC_UNUSED)
{
#ifndef WIN32
char *path = NULL;
}
#else
int virStorageFileGetLVMKey(const char *path,
- char **key ATTRIBUTE_UNUSED)
+ char **key G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, _("Unable to get LVM key for %s"), path);
return -1;
int
virStorageFileGetSCSIKey(const char *path,
char **key,
- bool ignoreError ATTRIBUTE_UNUSED)
+ bool ignoreError G_GNUC_UNUSED)
{
int status;
VIR_AUTOPTR(virCommand) cmd = NULL;
}
#else
int virStorageFileGetSCSIKey(const char *path,
- char **key ATTRIBUTE_UNUSED,
+ char **key G_GNUC_UNUSED,
bool ignoreError)
{
if (!ignoreError)
return 0;
}
#else
-int virStorageFileGetNPIVKey(const char *path ATTRIBUTE_UNUSED,
- char **key ATTRIBUTE_UNUSED)
+int virStorageFileGetNPIVKey(const char *path G_GNUC_UNUSED,
+ char **key G_GNUC_UNUSED)
{
return -1;
}
static int
virStorageSourceParseBackingJSONGluster(virStorageSourcePtr src,
virJSONValuePtr json,
- int opaque ATTRIBUTE_UNUSED)
+ int opaque G_GNUC_UNUSED)
{
const char *uri = virJSONValueObjectGetString(json, "filename");
const char *volume = virJSONValueObjectGetString(json, "volume");
static int
virStorageSourceParseBackingJSONiSCSI(virStorageSourcePtr src,
virJSONValuePtr json,
- int opaque ATTRIBUTE_UNUSED)
+ int opaque G_GNUC_UNUSED)
{
const char *transport = virJSONValueObjectGetString(json, "transport");
const char *portal = virJSONValueObjectGetString(json, "portal");
static int
virStorageSourceParseBackingJSONNbd(virStorageSourcePtr src,
virJSONValuePtr json,
- int opaque ATTRIBUTE_UNUSED)
+ int opaque G_GNUC_UNUSED)
{
const char *path = virJSONValueObjectGetString(json, "path");
const char *host = virJSONValueObjectGetString(json, "host");
static int
virStorageSourceParseBackingJSONSheepdog(virStorageSourcePtr src,
virJSONValuePtr json,
- int opaque ATTRIBUTE_UNUSED)
+ int opaque G_GNUC_UNUSED)
{
const char *filename;
const char *vdi = virJSONValueObjectGetString(json, "vdi");
static int
virStorageSourceParseBackingJSONSSH(virStorageSourcePtr src,
virJSONValuePtr json,
- int opaque ATTRIBUTE_UNUSED)
+ int opaque G_GNUC_UNUSED)
{
const char *path = virJSONValueObjectGetString(json, "path");
const char *host = virJSONValueObjectGetString(json, "host");
static int
virStorageSourceParseBackingJSONRBD(virStorageSourcePtr src,
virJSONValuePtr json,
- int opaque ATTRIBUTE_UNUSED)
+ int opaque G_GNUC_UNUSED)
{
const char *filename;
const char *pool = virJSONValueObjectGetString(json, "pool");
static int
virStorageSourceParseBackingJSONRaw(virStorageSourcePtr src,
virJSONValuePtr json,
- int opaque ATTRIBUTE_UNUSED)
+ int opaque G_GNUC_UNUSED)
{
/* There are no interesting attributes in raw driver.
* Treat it as pass-through.
static int
virStorageSourceParseBackingJSONVxHS(virStorageSourcePtr src,
virJSONValuePtr json,
- int opaque ATTRIBUTE_UNUSED)
+ int opaque G_GNUC_UNUSED)
{
const char *vdisk_id = virJSONValueObjectGetString(json, "vdisk-id");
virJSONValuePtr server = virJSONValueObjectGetObject(json, "server");
}
static void
-virLocaleFixupRadix(char **strp ATTRIBUTE_UNUSED)
+virLocaleFixupRadix(char **strp G_GNUC_UNUSED)
{
}
typedef int virLocale;
static int
-virLocaleSetRaw(virLocale *oldlocale ATTRIBUTE_UNUSED)
+virLocaleSetRaw(virLocale *oldlocale G_GNUC_UNUSED)
{
return 0;
}
static void
-virLocaleRevert(virLocale *oldlocale ATTRIBUTE_UNUSED)
+virLocaleRevert(virLocale *oldlocale G_GNUC_UNUSED)
{
}
#else /* WIN32 */
-int virSetInherit(int fd ATTRIBUTE_UNUSED, bool inherit ATTRIBUTE_UNUSED)
+int virSetInherit(int fd G_GNUC_UNUSED, bool inherit G_GNUC_UNUSED)
{
/* FIXME: Currently creating child processes is not supported on
* Win32, so there is no point in failing calls that are only relevant
}
#ifdef WIN32
-int virSetSockReuseAddr(int fd ATTRIBUTE_UNUSED, bool fatal ATTRIBUTE_UNUSED)
+int virSetSockReuseAddr(int fd G_GNUC_UNUSED, bool fatal G_GNUC_UNUSED)
{
/*
* SO_REUSEADDR on Windows is actually akin to SO_REUSEPORT
* failure (the original system error remains in errno).
*/
int
-virSetUIDGID(uid_t uid, gid_t gid, gid_t *groups ATTRIBUTE_UNUSED,
- int ngroups ATTRIBUTE_UNUSED)
+virSetUIDGID(uid_t uid, gid_t gid, gid_t *groups G_GNUC_UNUSED,
+ int ngroups G_GNUC_UNUSED)
{
if (gid != (gid_t)-1 && setregid(gid, gid) < 0) {
virReportSystemError(errno,
#else /* ! HAVE_GETPWUID_R */
int
-virGetGroupList(uid_t uid ATTRIBUTE_UNUSED, gid_t gid ATTRIBUTE_UNUSED,
+virGetGroupList(uid_t uid G_GNUC_UNUSED, gid_t gid G_GNUC_UNUSED,
gid_t **list)
{
*list = NULL;
}
bool
-virDoesUserExist(const char *name ATTRIBUTE_UNUSED)
+virDoesUserExist(const char *name G_GNUC_UNUSED)
{
return false;
}
bool
-virDoesGroupExist(const char *name ATTRIBUTE_UNUSED)
+virDoesGroupExist(const char *name G_GNUC_UNUSED)
{
return false;
}
char *
-virGetUserDirectoryByUID(uid_t uid ATTRIBUTE_UNUSED)
+virGetUserDirectoryByUID(uid_t uid G_GNUC_UNUSED)
{
/* Since Windows lacks setuid binaries, and since we already fake
* geteuid(), we can safely assume that this is only called when
}
char *
-virGetUserShell(uid_t uid ATTRIBUTE_UNUSED)
+virGetUserShell(uid_t uid G_GNUC_UNUSED)
{
virReportError(VIR_ERR_INTERNAL_ERROR,
"%s", _("virGetUserShell is not available"));
# else /* !HAVE_GETPWUID_R && !WIN32 */
char *
-virGetUserDirectoryByUID(uid_t uid ATTRIBUTE_UNUSED)
+virGetUserDirectoryByUID(uid_t uid G_GNUC_UNUSED)
{
virReportError(VIR_ERR_INTERNAL_ERROR,
"%s", _("virGetUserDirectory is not available"));
}
char *
-virGetUserShell(uid_t uid ATTRIBUTE_UNUSED)
+virGetUserShell(uid_t uid G_GNUC_UNUSED)
{
virReportError(VIR_ERR_INTERNAL_ERROR,
"%s", _("virGetUserShell is not available"));
# endif /* ! HAVE_GETPWUID_R && ! WIN32 */
char *
-virGetUserName(uid_t uid ATTRIBUTE_UNUSED)
+virGetUserName(uid_t uid G_GNUC_UNUSED)
{
virReportError(VIR_ERR_INTERNAL_ERROR,
"%s", _("virGetUserName is not available"));
return NULL;
}
-int virGetUserID(const char *name ATTRIBUTE_UNUSED,
- uid_t *uid ATTRIBUTE_UNUSED)
+int virGetUserID(const char *name G_GNUC_UNUSED,
+ uid_t *uid G_GNUC_UNUSED)
{
virReportError(VIR_ERR_INTERNAL_ERROR,
"%s", _("virGetUserID is not available"));
}
-int virGetGroupID(const char *name ATTRIBUTE_UNUSED,
- gid_t *gid ATTRIBUTE_UNUSED)
+int virGetGroupID(const char *name G_GNUC_UNUSED,
+ gid_t *gid G_GNUC_UNUSED)
{
virReportError(VIR_ERR_INTERNAL_ERROR,
"%s", _("virGetGroupID is not available"));
}
int
-virSetUIDGID(uid_t uid ATTRIBUTE_UNUSED,
- gid_t gid ATTRIBUTE_UNUSED,
- gid_t *groups ATTRIBUTE_UNUSED,
- int ngroups ATTRIBUTE_UNUSED)
+virSetUIDGID(uid_t uid G_GNUC_UNUSED,
+ gid_t gid G_GNUC_UNUSED,
+ gid_t *groups G_GNUC_UNUSED,
+ int ngroups G_GNUC_UNUSED)
{
virReportError(VIR_ERR_INTERNAL_ERROR,
"%s", _("virSetUIDGID is not available"));
}
char *
-virGetGroupName(gid_t gid ATTRIBUTE_UNUSED)
+virGetGroupName(gid_t gid G_GNUC_UNUSED)
{
virReportError(VIR_ERR_INTERNAL_ERROR,
"%s", _("virGetGroupName is not available"));
int
virSetUIDGIDWithCaps(uid_t uid, gid_t gid, gid_t *groups, int ngroups,
- unsigned long long capBits ATTRIBUTE_UNUSED,
- bool clearExistingCaps ATTRIBUTE_UNUSED)
+ unsigned long long capBits G_GNUC_UNUSED,
+ bool clearExistingCaps G_GNUC_UNUSED)
{
return virSetUIDGID(uid, gid, groups, ngroups);
}
return false;
}
#else
-bool virIsDevMapperDevice(const char *dev_name ATTRIBUTE_UNUSED)
+bool virIsDevMapperDevice(const char *dev_name G_GNUC_UNUSED)
{
return false;
}
}
#else
int
-virGetDeviceID(const char *path ATTRIBUTE_UNUSED,
- int *maj ATTRIBUTE_UNUSED,
- int *min ATTRIBUTE_UNUSED)
+virGetDeviceID(const char *path G_GNUC_UNUSED,
+ int *maj G_GNUC_UNUSED,
+ int *min G_GNUC_UNUSED)
{
return -ENOSYS;
}
#else
bool
-virVHBAPathExists(const char *sysfs_prefix ATTRIBUTE_UNUSED,
- int host ATTRIBUTE_UNUSED)
+virVHBAPathExists(const char *sysfs_prefix G_GNUC_UNUSED,
+ int host G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s", _("Not supported on this platform"));
return false;
bool
-virVHBAIsVportCapable(const char *sysfs_prefix ATTRIBUTE_UNUSED,
- int host ATTRIBUTE_UNUSED)
+virVHBAIsVportCapable(const char *sysfs_prefix G_GNUC_UNUSED,
+ int host G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s", _("Not supported on this platform"));
return false;
char *
-virVHBAGetConfig(const char *sysfs_prefix ATTRIBUTE_UNUSED,
- int host ATTRIBUTE_UNUSED,
- const char *entry ATTRIBUTE_UNUSED)
+virVHBAGetConfig(const char *sysfs_prefix G_GNUC_UNUSED,
+ int host G_GNUC_UNUSED,
+ const char *entry G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s", _("Not supported on this platform"));
return NULL;
char *
-virVHBAFindVportHost(const char *sysfs_prefix ATTRIBUTE_UNUSED)
+virVHBAFindVportHost(const char *sysfs_prefix G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s", _("Not supported on this platform"));
return NULL;
int
-virVHBAManageVport(const int parent_host ATTRIBUTE_UNUSED,
- const char *wwpn ATTRIBUTE_UNUSED,
- const char *wwnn ATTRIBUTE_UNUSED,
- int operation ATTRIBUTE_UNUSED)
+virVHBAManageVport(const int parent_host G_GNUC_UNUSED,
+ const char *wwpn G_GNUC_UNUSED,
+ const char *wwnn G_GNUC_UNUSED,
+ int operation G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s", _("Not supported on this platform"));
return -1;
char *
-virVHBAGetHostByWWN(const char *sysfs_prefix ATTRIBUTE_UNUSED,
- const char *wwnn ATTRIBUTE_UNUSED,
- const char *wwpn ATTRIBUTE_UNUSED)
+virVHBAGetHostByWWN(const char *sysfs_prefix G_GNUC_UNUSED,
+ const char *wwnn G_GNUC_UNUSED,
+ const char *wwpn G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s", _("Not supported on this platform"));
return NULL;
char *
-virVHBAGetHostByFabricWWN(const char *sysfs_prefix ATTRIBUTE_UNUSED,
- const char *fabric_wwn ATTRIBUTE_UNUSED)
+virVHBAGetHostByFabricWWN(const char *sysfs_prefix G_GNUC_UNUSED,
+ const char *fabric_wwn G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s", _("Not supported on this platform"));
return NULL;
#else
static int
-virVsockSetGuestCidQuiet(int fd ATTRIBUTE_UNUSED,
- unsigned int guest_cid ATTRIBUTE_UNUSED)
+virVsockSetGuestCidQuiet(int fd G_GNUC_UNUSED,
+ unsigned int guest_cid G_GNUC_UNUSED)
{
errno = ENOSYS;
return -1;
* This version is heavily based on xmlParserPrintFileContextInternal from libxml2.
*/
static void
-catchXMLError(void *ctx, const char *msg ATTRIBUTE_UNUSED, ...)
+catchXMLError(void *ctx, const char *msg G_GNUC_UNUSED, ...)
{
xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
}
-static void ignoreRNGError(void *ctx ATTRIBUTE_UNUSED,
- const char *msg ATTRIBUTE_UNUSED,
+static void ignoreRNGError(void *ctx G_GNUC_UNUSED,
+ const char *msg G_GNUC_UNUSED,
...)
{}