From nobody Sun Feb 8 11:16:55 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1571059055; cv=none; d=zoho.com; s=zohoarc; b=Lk/5cMpToGXUWM9GQzifK7QBXUu9py/uQc5YVTsBINHNL3UIIeUt3oWXYmHt859n2YqEFxkg8pWuVIjPiTT6+hVJOM+YsbRJaeF7PRAX9wQ0oujBM+rkPL2yu3ShkcicG1P8NM26ebDQwesI9MxVPMoNQo6Dr8pGNSYUhX12xU4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1571059055; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=2k7CAHfsrFqcHNpCVrip0xuULoVvYFwDNmJKAP2idOw=; b=JUCeW7ohcr83G+Tq3hc/kd7vXTJBWU+fQAW8atMDcy2lxvwYKNduyZTSJIjAx3ySU75bAKexLh4fIFC0nXxDB+ptdTuW+w/cQ5e1+Xm40JI8JxI+iVRL316nd2SspYMoTYQyGppDmwwMWRnSHcvA18lvw+zTZMj38NhhiMbjwUA= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1571059055983882.4856097794687; Mon, 14 Oct 2019 06:17:35 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C3C23302C060; Mon, 14 Oct 2019 13:17:33 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9D1DB5C241; Mon, 14 Oct 2019 13:17:33 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 5469062D10; Mon, 14 Oct 2019 13:17:33 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x9EDGg3U017566 for ; Mon, 14 Oct 2019 09:16:42 -0400 Received: by smtp.corp.redhat.com (Postfix) id 077C260126; Mon, 14 Oct 2019 13:16:42 +0000 (UTC) Received: from icr.brq.redhat.com (unknown [10.43.2.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 847226012C for ; Mon, 14 Oct 2019 13:16:41 +0000 (UTC) From: =?UTF-8?q?J=C3=A1n=20Tomko?= To: libvir-list@redhat.com Date: Mon, 14 Oct 2019 15:15:46 +0200 Message-Id: <57028dd3b9eeca9808545ce4c9edd2178d68bb10.1571058852.git.jtomko@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 28/35] tools: use G_GNUC_UNUSED X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.46]); Mon, 14 Oct 2019 13:17:34 +0000 (UTC) Use G_GNUC_UNUSED from GLib instead of ATTRIBUTE_UNUSED. Signed-off-by: J=C3=A1n Tomko --- tools/virsh-completer-domain.c | 6 +-- tools/virsh-completer-host.c | 4 +- tools/virsh-completer-interface.c | 2 +- tools/virsh-completer-network.c | 8 ++-- tools/virsh-completer-nodedev.c | 6 +-- tools/virsh-completer-nwfilter.c | 4 +- tools/virsh-completer-pool.c | 6 +-- tools/virsh-completer-secret.c | 6 +-- tools/virsh-console.c | 8 ++-- tools/virsh-domain-monitor.c | 4 +- tools/virsh-domain.c | 62 ++++++++++++++-------------- tools/virsh-host.c | 14 +++---- tools/virsh-interface.c | 8 ++-- tools/virsh-network.c | 6 +-- tools/virsh-nodedev.c | 8 ++-- tools/virsh-nwfilter.c | 4 +- tools/virsh-pool.c | 14 +++---- tools/virsh-secret.c | 8 ++-- tools/virsh-util.c | 10 ++--- tools/virsh-volume.c | 2 +- tools/virsh.c | 4 +- tools/virt-admin-completer.c | 2 +- tools/virt-admin.c | 12 +++--- tools/virt-host-validate-common.c | 4 +- tools/virt-login-shell-helper.c | 4 +- tools/vsh.c | 56 ++++++++++++------------- tools/wireshark/src/packet-libvirt.c | 6 +-- 27 files changed, 139 insertions(+), 139 deletions(-) diff --git a/tools/virsh-completer-domain.c b/tools/virsh-completer-domain.c index 9c10e38aba..8f5c711097 100644 --- a/tools/virsh-completer-domain.c +++ b/tools/virsh-completer-domain.c @@ -31,7 +31,7 @@ =20 char ** virshDomainNameCompleter(vshControl *ctl, - const vshCmd *cmd ATTRIBUTE_UNUSED, + const vshCmd *cmd G_GNUC_UNUSED, unsigned int flags) { virshControlPtr priv =3D ctl->privData; @@ -168,8 +168,8 @@ virshDomainDiskTargetCompleter(vshControl *ctl, =20 =20 char ** -virshDomainEventNameCompleter(vshControl *ctl ATTRIBUTE_UNUSED, - const vshCmd *cmd ATTRIBUTE_UNUSED, +virshDomainEventNameCompleter(vshControl *ctl G_GNUC_UNUSED, + const vshCmd *cmd G_GNUC_UNUSED, unsigned int flags) { size_t i =3D 0; diff --git a/tools/virsh-completer-host.c b/tools/virsh-completer-host.c index 7e31ca2bf3..839c8cc420 100644 --- a/tools/virsh-completer-host.c +++ b/tools/virsh-completer-host.c @@ -51,7 +51,7 @@ virshPagesizeNodeToString(xmlNodePtr node) =20 char ** virshAllocpagesPagesizeCompleter(vshControl *ctl, - const vshCmd *cmd ATTRIBUTE_UNUSED, + const vshCmd *cmd G_GNUC_UNUSED, unsigned int flags) { VIR_AUTOPTR(xmlXPathContext) ctxt =3D NULL; @@ -107,7 +107,7 @@ virshAllocpagesPagesizeCompleter(vshControl *ctl, =20 char ** virshCellnoCompleter(vshControl *ctl, - const vshCmd *cmd ATTRIBUTE_UNUSED, + const vshCmd *cmd G_GNUC_UNUSED, unsigned int flags) { VIR_AUTOPTR(xmlXPathContext) ctxt =3D NULL; diff --git a/tools/virsh-completer-interface.c b/tools/virsh-completer-inte= rface.c index 5dcdab8e92..24a69d30b9 100644 --- a/tools/virsh-completer-interface.c +++ b/tools/virsh-completer-interface.c @@ -27,7 +27,7 @@ =20 char ** virshInterfaceNameCompleter(vshControl *ctl, - const vshCmd *cmd ATTRIBUTE_UNUSED, + const vshCmd *cmd G_GNUC_UNUSED, unsigned int flags) { virshControlPtr priv =3D ctl->privData; diff --git a/tools/virsh-completer-network.c b/tools/virsh-completer-networ= k.c index 6f92780feb..404260b20c 100644 --- a/tools/virsh-completer-network.c +++ b/tools/virsh-completer-network.c @@ -28,7 +28,7 @@ =20 char ** virshNetworkNameCompleter(vshControl *ctl, - const vshCmd *cmd ATTRIBUTE_UNUSED, + const vshCmd *cmd G_GNUC_UNUSED, unsigned int flags) { virshControlPtr priv =3D ctl->privData; @@ -70,8 +70,8 @@ virshNetworkNameCompleter(vshControl *ctl, =20 =20 char ** -virshNetworkEventNameCompleter(vshControl *ctl ATTRIBUTE_UNUSED, - const vshCmd *cmd ATTRIBUTE_UNUSED, +virshNetworkEventNameCompleter(vshControl *ctl G_GNUC_UNUSED, + const vshCmd *cmd G_GNUC_UNUSED, unsigned int flags) { size_t i =3D 0; @@ -97,7 +97,7 @@ virshNetworkEventNameCompleter(vshControl *ctl ATTRIBUTE_= UNUSED, =20 char ** virshNetworkPortUUIDCompleter(vshControl *ctl, - const vshCmd *cmd ATTRIBUTE_UNUSED, + const vshCmd *cmd G_GNUC_UNUSED, unsigned int flags) { virshControlPtr priv =3D ctl->privData; diff --git a/tools/virsh-completer-nodedev.c b/tools/virsh-completer-nodede= v.c index 36f38acd57..9bd1d20945 100644 --- a/tools/virsh-completer-nodedev.c +++ b/tools/virsh-completer-nodedev.c @@ -29,7 +29,7 @@ =20 char ** virshNodeDeviceNameCompleter(vshControl *ctl, - const vshCmd *cmd ATTRIBUTE_UNUSED, + const vshCmd *cmd G_GNUC_UNUSED, unsigned int flags) { virshControlPtr priv =3D ctl->privData; @@ -68,8 +68,8 @@ virshNodeDeviceNameCompleter(vshControl *ctl, =20 =20 char ** -virshNodeDeviceEventNameCompleter(vshControl *ctl ATTRIBUTE_UNUSED, - const vshCmd *cmd ATTRIBUTE_UNUSED, +virshNodeDeviceEventNameCompleter(vshControl *ctl G_GNUC_UNUSED, + const vshCmd *cmd G_GNUC_UNUSED, unsigned int flags) { size_t i =3D 0; diff --git a/tools/virsh-completer-nwfilter.c b/tools/virsh-completer-nwfil= ter.c index 0942526f22..5a86602101 100644 --- a/tools/virsh-completer-nwfilter.c +++ b/tools/virsh-completer-nwfilter.c @@ -27,7 +27,7 @@ =20 char ** virshNWFilterNameCompleter(vshControl *ctl, - const vshCmd *cmd ATTRIBUTE_UNUSED, + const vshCmd *cmd G_GNUC_UNUSED, unsigned int flags) { virshControlPtr priv =3D ctl->privData; @@ -67,7 +67,7 @@ virshNWFilterNameCompleter(vshControl *ctl, =20 char ** virshNWFilterBindingNameCompleter(vshControl *ctl, - const vshCmd *cmd ATTRIBUTE_UNUSED, + const vshCmd *cmd G_GNUC_UNUSED, unsigned int flags) { virshControlPtr priv =3D ctl->privData; diff --git a/tools/virsh-completer-pool.c b/tools/virsh-completer-pool.c index 9703589522..e646d07e65 100644 --- a/tools/virsh-completer-pool.c +++ b/tools/virsh-completer-pool.c @@ -29,7 +29,7 @@ =20 char ** virshStoragePoolNameCompleter(vshControl *ctl, - const vshCmd *cmd ATTRIBUTE_UNUSED, + const vshCmd *cmd G_GNUC_UNUSED, unsigned int flags) { virshControlPtr priv =3D ctl->privData; @@ -71,8 +71,8 @@ virshStoragePoolNameCompleter(vshControl *ctl, =20 =20 char ** -virshPoolEventNameCompleter(vshControl *ctl ATTRIBUTE_UNUSED, - const vshCmd *cmd ATTRIBUTE_UNUSED, +virshPoolEventNameCompleter(vshControl *ctl G_GNUC_UNUSED, + const vshCmd *cmd G_GNUC_UNUSED, unsigned int flags) { size_t i =3D 0; diff --git a/tools/virsh-completer-secret.c b/tools/virsh-completer-secret.c index a6924b6b8c..38403f275a 100644 --- a/tools/virsh-completer-secret.c +++ b/tools/virsh-completer-secret.c @@ -28,7 +28,7 @@ =20 char ** virshSecretUUIDCompleter(vshControl *ctl, - const vshCmd *cmd ATTRIBUTE_UNUSED, + const vshCmd *cmd G_GNUC_UNUSED, unsigned int flags) { virshControlPtr priv =3D ctl->privData; @@ -68,8 +68,8 @@ virshSecretUUIDCompleter(vshControl *ctl, =20 =20 char ** -virshSecretEventNameCompleter(vshControl *ctl ATTRIBUTE_UNUSED, - const vshCmd *cmd ATTRIBUTE_UNUSED, +virshSecretEventNameCompleter(vshControl *ctl G_GNUC_UNUSED, + const vshCmd *cmd G_GNUC_UNUSED, unsigned int flags) { size_t i; diff --git a/tools/virsh-console.c b/tools/virsh-console.c index 3b7c39a1a4..a087d82776 100644 --- a/tools/virsh-console.c +++ b/tools/virsh-console.c @@ -91,7 +91,7 @@ virConsoleOnceInit(void) VIR_ONCE_GLOBAL_INIT(virConsole); =20 static void -virConsoleHandleSignal(int sig ATTRIBUTE_UNUSED) +virConsoleHandleSignal(int sig G_GNUC_UNUSED) { } =20 @@ -232,8 +232,8 @@ virConsoleEventOnStream(virStreamPtr st, =20 =20 static void -virConsoleEventOnStdin(int watch ATTRIBUTE_UNUSED, - int fd ATTRIBUTE_UNUSED, +virConsoleEventOnStdin(int watch G_GNUC_UNUSED, + int fd G_GNUC_UNUSED, int events, void *opaque) { @@ -306,7 +306,7 @@ virConsoleEventOnStdin(int watch ATTRIBUTE_UNUSED, =20 =20 static void -virConsoleEventOnStdout(int watch ATTRIBUTE_UNUSED, +virConsoleEventOnStdout(int watch G_GNUC_UNUSED, int fd, int events, void *opaque) diff --git a/tools/virsh-domain-monitor.c b/tools/virsh-domain-monitor.c index b69283b2da..92dcbd1eb7 100644 --- a/tools/virsh-domain-monitor.c +++ b/tools/virsh-domain-monitor.c @@ -2169,9 +2169,9 @@ static const vshCmdOptDef opts_domstats[] =3D { =20 =20 static bool -virshDomainStatsPrintRecord(vshControl *ctl ATTRIBUTE_UNUSED, +virshDomainStatsPrintRecord(vshControl *ctl G_GNUC_UNUSED, virDomainStatsRecordPtr record, - bool raw ATTRIBUTE_UNUSED) + bool raw G_GNUC_UNUSED) { char *param; size_t i; diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index c2e7c2b227..e188c0a34f 100644 --- a/tools/virsh-domain.c +++ b/tools/virsh-domain.c @@ -1708,9 +1708,9 @@ virshPrintJobProgress(const char *label, unsigned lon= g long remaining, =20 static volatile sig_atomic_t intCaught; =20 -static void virshCatchInt(int sig ATTRIBUTE_UNUSED, - siginfo_t *siginfo ATTRIBUTE_UNUSED, - void *context ATTRIBUTE_UNUSED) +static void virshCatchInt(int sig G_GNUC_UNUSED, + siginfo_t *siginfo G_GNUC_UNUSED, + void *context G_GNUC_UNUSED) { intCaught =3D 1; } @@ -1735,10 +1735,10 @@ struct _virshBlockJobWaitData { =20 =20 static void -virshBlockJobStatusHandler(virConnectPtr conn ATTRIBUTE_UNUSED, - virDomainPtr dom ATTRIBUTE_UNUSED, +virshBlockJobStatusHandler(virConnectPtr conn G_GNUC_UNUSED, + virDomainPtr dom G_GNUC_UNUSED, const char *disk, - int type ATTRIBUTE_UNUSED, + int type G_GNUC_UNUSED, int status, void *opaque) { @@ -9563,7 +9563,7 @@ struct virshQemuEventData { typedef struct virshQemuEventData virshQemuEventData; =20 static void -virshEventQemuPrint(virConnectPtr conn ATTRIBUTE_UNUSED, +virshEventQemuPrint(virConnectPtr conn G_GNUC_UNUSED, virDomainPtr dom, const char *event, long long seconds, @@ -10904,7 +10904,7 @@ virshMigrateTimeout(vshControl *ctl, } =20 static void -virshMigrateIteration(virConnectPtr conn ATTRIBUTE_UNUSED, +virshMigrateIteration(virConnectPtr conn G_GNUC_UNUSED, virDomainPtr dom, int iteration, void *opaque) @@ -11765,7 +11765,7 @@ cmdDomHostname(vshControl *ctl, const vshCmd *cmd) * @n2 second node * returns true in case n1 covers n2, false otherwise. */ -ATTRIBUTE_UNUSED +G_GNUC_UNUSED static bool virshNodeIsSuperset(xmlNodePtr n1, xmlNodePtr n2) { @@ -13029,7 +13029,7 @@ virshEventPrint(virshDomEventData *data, } =20 static void -virshEventGenericPrint(virConnectPtr conn ATTRIBUTE_UNUSED, +virshEventGenericPrint(virConnectPtr conn G_GNUC_UNUSED, virDomainPtr dom, void *opaque) { @@ -13042,7 +13042,7 @@ virshEventGenericPrint(virConnectPtr conn ATTRIBUTE= _UNUSED, } =20 static void -virshEventLifecyclePrint(virConnectPtr conn ATTRIBUTE_UNUSED, +virshEventLifecyclePrint(virConnectPtr conn G_GNUC_UNUSED, virDomainPtr dom, int event, int detail, @@ -13058,7 +13058,7 @@ virshEventLifecyclePrint(virConnectPtr conn ATTRIBU= TE_UNUSED, } =20 static void -virshEventRTCChangePrint(virConnectPtr conn ATTRIBUTE_UNUSED, +virshEventRTCChangePrint(virConnectPtr conn G_GNUC_UNUSED, virDomainPtr dom, long long utcoffset, void *opaque) @@ -13072,7 +13072,7 @@ virshEventRTCChangePrint(virConnectPtr conn ATTRIBU= TE_UNUSED, } =20 static void -virshEventWatchdogPrint(virConnectPtr conn ATTRIBUTE_UNUSED, +virshEventWatchdogPrint(virConnectPtr conn G_GNUC_UNUSED, virDomainPtr dom, int action, void *opaque) @@ -13086,7 +13086,7 @@ virshEventWatchdogPrint(virConnectPtr conn ATTRIBUT= E_UNUSED, } =20 static void -virshEventIOErrorPrint(virConnectPtr conn ATTRIBUTE_UNUSED, +virshEventIOErrorPrint(virConnectPtr conn G_GNUC_UNUSED, virDomainPtr dom, const char *srcPath, const char *devAlias, @@ -13104,7 +13104,7 @@ virshEventIOErrorPrint(virConnectPtr conn ATTRIBUTE= _UNUSED, } =20 static void -virshEventGraphicsPrint(virConnectPtr conn ATTRIBUTE_UNUSED, +virshEventGraphicsPrint(virConnectPtr conn G_GNUC_UNUSED, virDomainPtr dom, int phase, const virDomainEventGraphicsAddress *local, @@ -13136,7 +13136,7 @@ virshEventGraphicsPrint(virConnectPtr conn ATTRIBUT= E_UNUSED, } =20 static void -virshEventIOErrorReasonPrint(virConnectPtr conn ATTRIBUTE_UNUSED, +virshEventIOErrorReasonPrint(virConnectPtr conn G_GNUC_UNUSED, virDomainPtr dom, const char *srcPath, const char *devAlias, @@ -13157,7 +13157,7 @@ virshEventIOErrorReasonPrint(virConnectPtr conn ATT= RIBUTE_UNUSED, } =20 static void -virshEventBlockJobPrint(virConnectPtr conn ATTRIBUTE_UNUSED, +virshEventBlockJobPrint(virConnectPtr conn G_GNUC_UNUSED, virDomainPtr dom, const char *disk, int type, @@ -13176,7 +13176,7 @@ virshEventBlockJobPrint(virConnectPtr conn ATTRIBUT= E_UNUSED, } =20 static void -virshEventDiskChangePrint(virConnectPtr conn ATTRIBUTE_UNUSED, +virshEventDiskChangePrint(virConnectPtr conn G_GNUC_UNUSED, virDomainPtr dom, const char *oldSrc, const char *newSrc, @@ -13197,7 +13197,7 @@ virshEventDiskChangePrint(virConnectPtr conn ATTRIB= UTE_UNUSED, } =20 static void -virshEventTrayChangePrint(virConnectPtr conn ATTRIBUTE_UNUSED, +virshEventTrayChangePrint(virConnectPtr conn G_GNUC_UNUSED, virDomainPtr dom, const char *alias, int reason, @@ -13213,9 +13213,9 @@ virshEventTrayChangePrint(virConnectPtr conn ATTRIB= UTE_UNUSED, } =20 static void -virshEventPMChangePrint(virConnectPtr conn ATTRIBUTE_UNUSED, +virshEventPMChangePrint(virConnectPtr conn G_GNUC_UNUSED, virDomainPtr dom, - int reason ATTRIBUTE_UNUSED, + int reason G_GNUC_UNUSED, void *opaque) { /* As long as libvirt.h doesn't define any reasons, we might as @@ -13224,7 +13224,7 @@ virshEventPMChangePrint(virConnectPtr conn ATTRIBUT= E_UNUSED, } =20 static void -virshEventBalloonChangePrint(virConnectPtr conn ATTRIBUTE_UNUSED, +virshEventBalloonChangePrint(virConnectPtr conn G_GNUC_UNUSED, virDomainPtr dom, unsigned long long actual, void *opaque) @@ -13238,7 +13238,7 @@ virshEventBalloonChangePrint(virConnectPtr conn ATT= RIBUTE_UNUSED, } =20 static void -virshEventDeviceRemovedPrint(virConnectPtr conn ATTRIBUTE_UNUSED, +virshEventDeviceRemovedPrint(virConnectPtr conn G_GNUC_UNUSED, virDomainPtr dom, const char *alias, void *opaque) @@ -13252,7 +13252,7 @@ virshEventDeviceRemovedPrint(virConnectPtr conn ATT= RIBUTE_UNUSED, } =20 static void -virshEventDeviceAddedPrint(virConnectPtr conn ATTRIBUTE_UNUSED, +virshEventDeviceAddedPrint(virConnectPtr conn G_GNUC_UNUSED, virDomainPtr dom, const char *alias, void *opaque) @@ -13266,7 +13266,7 @@ virshEventDeviceAddedPrint(virConnectPtr conn ATTRI= BUTE_UNUSED, } =20 static void -virshEventTunablePrint(virConnectPtr conn ATTRIBUTE_UNUSED, +virshEventTunablePrint(virConnectPtr conn G_GNUC_UNUSED, virDomainPtr dom, virTypedParameterPtr params, int nparams, @@ -13304,7 +13304,7 @@ VIR_ENUM_IMPL(virshEventAgentLifecycleReason, =20 #define UNKNOWNSTR(str) (str ? str : N_("unsupported value")) static void -virshEventAgentLifecyclePrint(virConnectPtr conn ATTRIBUTE_UNUSED, +virshEventAgentLifecyclePrint(virConnectPtr conn G_GNUC_UNUSED, virDomainPtr dom, int state, int reason, @@ -13321,7 +13321,7 @@ virshEventAgentLifecyclePrint(virConnectPtr conn AT= TRIBUTE_UNUSED, } =20 static void -virshEventMigrationIterationPrint(virConnectPtr conn ATTRIBUTE_UNUSED, +virshEventMigrationIterationPrint(virConnectPtr conn G_GNUC_UNUSED, virDomainPtr dom, int iteration, void *opaque) @@ -13337,7 +13337,7 @@ virshEventMigrationIterationPrint(virConnectPtr con= n ATTRIBUTE_UNUSED, } =20 static void -virshEventJobCompletedPrint(virConnectPtr conn ATTRIBUTE_UNUSED, +virshEventJobCompletedPrint(virConnectPtr conn G_GNUC_UNUSED, virDomainPtr dom, virTypedParameterPtr params, int nparams, @@ -13361,7 +13361,7 @@ virshEventJobCompletedPrint(virConnectPtr conn ATTR= IBUTE_UNUSED, =20 =20 static void -virshEventDeviceRemovalFailedPrint(virConnectPtr conn ATTRIBUTE_UNUSED, +virshEventDeviceRemovalFailedPrint(virConnectPtr conn G_GNUC_UNUSED, virDomainPtr dom, const char *alias, void *opaque) @@ -13382,7 +13382,7 @@ VIR_ENUM_IMPL(virshEventMetadataChangeType, N_("element")); =20 static void -virshEventMetadataChangePrint(virConnectPtr conn ATTRIBUTE_UNUSED, +virshEventMetadataChangePrint(virConnectPtr conn G_GNUC_UNUSED, virDomainPtr dom, int type, const char *nsuri, @@ -13399,7 +13399,7 @@ virshEventMetadataChangePrint(virConnectPtr conn AT= TRIBUTE_UNUSED, =20 =20 static void -virshEventBlockThresholdPrint(virConnectPtr conn ATTRIBUTE_UNUSED, +virshEventBlockThresholdPrint(virConnectPtr conn G_GNUC_UNUSED, virDomainPtr dom, const char *dev, const char *path, diff --git a/tools/virsh-host.c b/tools/virsh-host.c index da269f4c4c..9ecbdb5af6 100644 --- a/tools/virsh-host.c +++ b/tools/virsh-host.c @@ -50,7 +50,7 @@ static const vshCmdInfo info_capabilities[] =3D { }; =20 static bool -cmdCapabilities(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED) +cmdCapabilities(vshControl *ctl, const vshCmd *cmd G_GNUC_UNUSED) { char *caps; virshControlPtr priv =3D ctl->privData; @@ -654,7 +654,7 @@ static const vshCmdInfo info_nodeinfo[] =3D { }; =20 static bool -cmdNodeinfo(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED) +cmdNodeinfo(vshControl *ctl, const vshCmd *cmd G_GNUC_UNUSED) { virNodeInfo info; virshControlPtr priv =3D ctl->privData; @@ -699,7 +699,7 @@ static const vshCmdOptDef opts_node_cpumap[] =3D { }; =20 static bool -cmdNodeCpuMap(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED) +cmdNodeCpuMap(vshControl *ctl, const vshCmd *cmd G_GNUC_UNUSED) { int cpu, cpunum; unsigned char *cpumap =3D NULL; @@ -1029,7 +1029,7 @@ static const vshCmdInfo info_sysinfo[] =3D { }; =20 static bool -cmdSysinfo(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED) +cmdSysinfo(vshControl *ctl, const vshCmd *cmd G_GNUC_UNUSED) { char *sysinfo; virshControlPtr priv =3D ctl->privData; @@ -1060,7 +1060,7 @@ static const vshCmdInfo info_hostname[] =3D { }; =20 static bool -cmdHostname(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED) +cmdHostname(vshControl *ctl, const vshCmd *cmd G_GNUC_UNUSED) { char *hostname; virshControlPtr priv =3D ctl->privData; @@ -1091,7 +1091,7 @@ static const vshCmdInfo info_uri[] =3D { }; =20 static bool -cmdURI(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED) +cmdURI(vshControl *ctl, const vshCmd *cmd G_GNUC_UNUSED) { char *uri; virshControlPtr priv =3D ctl->privData; @@ -1409,7 +1409,7 @@ static const vshCmdOptDef opts_version[] =3D { }; =20 static bool -cmdVersion(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED) +cmdVersion(vshControl *ctl, const vshCmd *cmd G_GNUC_UNUSED) { unsigned long hvVersion; const char *hvType; diff --git a/tools/virsh-interface.c b/tools/virsh-interface.c index 7e84ee3c52..b83e385d00 100644 --- a/tools/virsh-interface.c +++ b/tools/virsh-interface.c @@ -345,7 +345,7 @@ static const vshCmdOptDef opts_interface_list[] =3D { }; =20 static bool -cmdInterfaceList(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED) +cmdInterfaceList(vshControl *ctl, const vshCmd *cmd G_GNUC_UNUSED) { bool inactive =3D vshCommandOptBool(cmd, "inactive"); bool all =3D vshCommandOptBool(cmd, "all"); @@ -695,7 +695,7 @@ static const vshCmdOptDef opts_interface_begin[] =3D { }; =20 static bool -cmdInterfaceBegin(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED) +cmdInterfaceBegin(vshControl *ctl, const vshCmd *cmd G_GNUC_UNUSED) { virshControlPtr priv =3D ctl->privData; =20 @@ -726,7 +726,7 @@ static const vshCmdOptDef opts_interface_commit[] =3D { }; =20 static bool -cmdInterfaceCommit(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED) +cmdInterfaceCommit(vshControl *ctl, const vshCmd *cmd G_GNUC_UNUSED) { virshControlPtr priv =3D ctl->privData; =20 @@ -757,7 +757,7 @@ static const vshCmdOptDef opts_interface_rollback[] =3D= { }; =20 static bool -cmdInterfaceRollback(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED) +cmdInterfaceRollback(vshControl *ctl, const vshCmd *cmd G_GNUC_UNUSED) { virshControlPtr priv =3D ctl->privData; =20 diff --git a/tools/virsh-network.c b/tools/virsh-network.c index be16f7970e..163cf21af9 100644 --- a/tools/virsh-network.c +++ b/tools/virsh-network.c @@ -703,7 +703,7 @@ static const vshCmdOptDef opts_network_list[] =3D { if (vshCommandOptBool(cmd, NAME)) \ flags |=3D (FLAG) static bool -cmdNetworkList(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED) +cmdNetworkList(vshControl *ctl, const vshCmd *cmd G_GNUC_UNUSED) { virshNetworkListPtr list =3D NULL; size_t i; @@ -1208,10 +1208,10 @@ VIR_ENUM_IMPL(virshNetworkEventId, "lifecycle"); =20 static void -vshEventLifecyclePrint(virConnectPtr conn ATTRIBUTE_UNUSED, +vshEventLifecyclePrint(virConnectPtr conn G_GNUC_UNUSED, virNetworkPtr net, int event, - int detail ATTRIBUTE_UNUSED, + int detail G_GNUC_UNUSED, void *opaque) { virshNetEventData *data =3D opaque; diff --git a/tools/virsh-nodedev.c b/tools/virsh-nodedev.c index b21e2e2fcc..9236d159ed 100644 --- a/tools/virsh-nodedev.c +++ b/tools/virsh-nodedev.c @@ -382,7 +382,7 @@ static const vshCmdOptDef opts_node_list_devices[] =3D { }; =20 static bool -cmdNodeListDevices(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED) +cmdNodeListDevices(vshControl *ctl, const vshCmd *cmd G_GNUC_UNUSED) { const char *cap_str =3D NULL; size_t i; @@ -780,10 +780,10 @@ struct virshNodeDeviceEventData { typedef struct virshNodeDeviceEventData virshNodeDeviceEventData; =20 static void -vshEventLifecyclePrint(virConnectPtr conn ATTRIBUTE_UNUSED, +vshEventLifecyclePrint(virConnectPtr conn G_GNUC_UNUSED, virNodeDevicePtr dev, int event, - int detail ATTRIBUTE_UNUSED, + int detail G_GNUC_UNUSED, void *opaque) { virshNodeDeviceEventData *data =3D opaque; @@ -811,7 +811,7 @@ vshEventLifecyclePrint(virConnectPtr conn ATTRIBUTE_UNU= SED, } =20 static void -vshEventGenericPrint(virConnectPtr conn ATTRIBUTE_UNUSED, +vshEventGenericPrint(virConnectPtr conn G_GNUC_UNUSED, virNodeDevicePtr dev, void *opaque) { diff --git a/tools/virsh-nwfilter.c b/tools/virsh-nwfilter.c index 952fb2f391..b87040ee6e 100644 --- a/tools/virsh-nwfilter.c +++ b/tools/virsh-nwfilter.c @@ -351,7 +351,7 @@ static const vshCmdOptDef opts_nwfilter_list[] =3D { }; =20 static bool -cmdNWFilterList(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED) +cmdNWFilterList(vshControl *ctl, const vshCmd *cmd G_GNUC_UNUSED) { size_t i; char uuid[VIR_UUID_STRING_BUFLEN]; @@ -716,7 +716,7 @@ static const vshCmdOptDef opts_nwfilter_binding_list[] = =3D { }; =20 static bool -cmdNWFilterBindingList(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED) +cmdNWFilterBindingList(vshControl *ctl, const vshCmd *cmd G_GNUC_UNUSED) { size_t i; bool ret =3D false; diff --git a/tools/virsh-pool.c b/tools/virsh-pool.c index 96ef626346..55af2e4e4e 100644 --- a/tools/virsh-pool.c +++ b/tools/virsh-pool.c @@ -1114,7 +1114,7 @@ static const vshCmdOptDef opts_pool_list[] =3D { }; =20 static bool -cmdPoolList(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED) +cmdPoolList(vshControl *ctl, const vshCmd *cmd G_GNUC_UNUSED) { virStoragePoolInfo info; size_t i; @@ -1445,7 +1445,7 @@ static const vshCmdOptDef opts_find_storage_pool_sour= ces_as[] =3D { }; =20 static bool -cmdPoolDiscoverSourcesAs(vshControl * ctl, const vshCmd * cmd ATTRIBUTE_UN= USED) +cmdPoolDiscoverSourcesAs(vshControl * ctl, const vshCmd * cmd G_GNUC_UNUSE= D) { const char *type =3D NULL, *host =3D NULL; char *srcSpec =3D NULL; @@ -1528,7 +1528,7 @@ static const vshCmdOptDef opts_find_storage_pool_sour= ces[] =3D { }; =20 static bool -cmdPoolDiscoverSources(vshControl * ctl, const vshCmd * cmd ATTRIBUTE_UNUS= ED) +cmdPoolDiscoverSources(vshControl * ctl, const vshCmd * cmd G_GNUC_UNUSED) { const char *type =3D NULL, *srcSpecFile =3D NULL; char *srcSpec =3D NULL, *srcList; @@ -1918,10 +1918,10 @@ typedef struct virshPoolEventData virshPoolEventDat= a; =20 =20 static void -vshEventLifecyclePrint(virConnectPtr conn ATTRIBUTE_UNUSED, +vshEventLifecyclePrint(virConnectPtr conn G_GNUC_UNUSED, virStoragePoolPtr pool, int event, - int detail ATTRIBUTE_UNUSED, + int detail G_GNUC_UNUSED, void *opaque) { virshPoolEventData *data =3D opaque; @@ -1951,7 +1951,7 @@ vshEventLifecyclePrint(virConnectPtr conn ATTRIBUTE_U= NUSED, } =20 static void -vshEventGenericPrint(virConnectPtr conn ATTRIBUTE_UNUSED, +vshEventGenericPrint(virConnectPtr conn G_GNUC_UNUSED, virStoragePoolPtr pool, void *opaque) { @@ -2126,7 +2126,7 @@ static const vshCmdOptDef opts_pool_capabilities[] = =3D { =20 static bool cmdPoolCapabilities(vshControl *ctl, - const vshCmd *cmd ATTRIBUTE_UNUSED) + const vshCmd *cmd G_GNUC_UNUSED) { const unsigned int flags =3D 0; /* No flags so far */ virshControlPtr priv =3D ctl->privData; diff --git a/tools/virsh-secret.c b/tools/virsh-secret.c index 48058bea05..7558c4c476 100644 --- a/tools/virsh-secret.c +++ b/tools/virsh-secret.c @@ -488,7 +488,7 @@ static const vshCmdOptDef opts_secret_list[] =3D { }; =20 static bool -cmdSecretList(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED) +cmdSecretList(vshControl *ctl, const vshCmd *cmd G_GNUC_UNUSED) { size_t i; virshSecretListPtr list =3D NULL; @@ -579,10 +579,10 @@ struct virshSecretEventData { typedef struct virshSecretEventData virshSecretEventData; =20 static void -vshEventLifecyclePrint(virConnectPtr conn ATTRIBUTE_UNUSED, +vshEventLifecyclePrint(virConnectPtr conn G_GNUC_UNUSED, virSecretPtr secret, int event, - int detail ATTRIBUTE_UNUSED, + int detail G_GNUC_UNUSED, void *opaque) { virshSecretEventData *data =3D opaque; @@ -611,7 +611,7 @@ vshEventLifecyclePrint(virConnectPtr conn ATTRIBUTE_UNU= SED, } =20 static void -vshEventGenericPrint(virConnectPtr conn ATTRIBUTE_UNUSED, +vshEventGenericPrint(virConnectPtr conn G_GNUC_UNUSED, virSecretPtr secret, void *opaque) { diff --git a/tools/virsh-util.c b/tools/virsh-util.c index 933d1c825d..f436fbb486 100644 --- a/tools/virsh-util.c +++ b/tools/virsh-util.c @@ -141,7 +141,7 @@ virshDomainState(vshControl *ctl, =20 =20 int -virshStreamSink(virStreamPtr st ATTRIBUTE_UNUSED, +virshStreamSink(virStreamPtr st G_GNUC_UNUSED, const char *bytes, size_t nbytes, void *opaque) @@ -153,7 +153,7 @@ virshStreamSink(virStreamPtr st ATTRIBUTE_UNUSED, =20 =20 int -virshStreamSource(virStreamPtr st ATTRIBUTE_UNUSED, +virshStreamSource(virStreamPtr st G_GNUC_UNUSED, char *bytes, size_t nbytes, void *opaque) @@ -166,7 +166,7 @@ virshStreamSource(virStreamPtr st ATTRIBUTE_UNUSED, =20 =20 int -virshStreamSourceSkip(virStreamPtr st ATTRIBUTE_UNUSED, +virshStreamSourceSkip(virStreamPtr st G_GNUC_UNUSED, long long offset, void *opaque) { @@ -182,7 +182,7 @@ virshStreamSourceSkip(virStreamPtr st ATTRIBUTE_UNUSED, =20 =20 int -virshStreamSkip(virStreamPtr st ATTRIBUTE_UNUSED, +virshStreamSkip(virStreamPtr st G_GNUC_UNUSED, long long offset, void *opaque) { @@ -200,7 +200,7 @@ virshStreamSkip(virStreamPtr st ATTRIBUTE_UNUSED, =20 =20 int -virshStreamInData(virStreamPtr st ATTRIBUTE_UNUSED, +virshStreamInData(virStreamPtr st G_GNUC_UNUSED, int *inData, long long *offset, void *opaque) diff --git a/tools/virsh-volume.c b/tools/virsh-volume.c index 97803b21be..702d0109ad 100644 --- a/tools/virsh-volume.c +++ b/tools/virsh-volume.c @@ -1376,7 +1376,7 @@ static const vshCmdOptDef opts_vol_list[] =3D { }; =20 static bool -cmdVolList(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED) +cmdVolList(vshControl *ctl, const vshCmd *cmd G_GNUC_UNUSED) { virStorageVolInfo volumeInfo; virStoragePoolPtr pool; diff --git a/tools/virsh.c b/tools/virsh.c index ec20f35a77..0ed46e0e64 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -392,7 +392,7 @@ virshInit(vshControl *ctl) } =20 static void -virshDeinitTimer(int timer ATTRIBUTE_UNUSED, void *opaque ATTRIBUTE_UNUSED) +virshDeinitTimer(int timer G_GNUC_UNUSED, void *opaque G_GNUC_UNUSED) { /* nothing to be done here */ } @@ -498,7 +498,7 @@ virshUsage(void) * Show version and options compiled in */ static void -virshShowVersion(vshControl *ctl ATTRIBUTE_UNUSED) +virshShowVersion(vshControl *ctl G_GNUC_UNUSED) { /* FIXME - list a copyright blurb, as in GNU programs? */ vshPrint(ctl, _("Virsh command line tool of libvirt %s\n"), VERSION); diff --git a/tools/virt-admin-completer.c b/tools/virt-admin-completer.c index e0e36f9756..b8602efaf9 100644 --- a/tools/virt-admin-completer.c +++ b/tools/virt-admin-completer.c @@ -29,7 +29,7 @@ =20 char ** vshAdmServerCompleter(vshControl *ctl, - const vshCmd *cmd ATTRIBUTE_UNUSED, + const vshCmd *cmd G_GNUC_UNUSED, unsigned int flags) { vshAdmControlPtr priv =3D ctl->privData; diff --git a/tools/virt-admin.c b/tools/virt-admin.c index e549ec1f83..95a3c3d30e 100644 --- a/tools/virt-admin.c +++ b/tools/virt-admin.c @@ -112,7 +112,7 @@ vshAdmGetTimeStr(vshControl *ctl, time_t then, char **r= esult) * check if the communication channel has not been closed by remote party. */ static void -vshAdmCatchDisconnect(virAdmConnectPtr conn ATTRIBUTE_UNUSED, +vshAdmCatchDisconnect(virAdmConnectPtr conn G_GNUC_UNUSED, int reason, void *opaque) { @@ -231,7 +231,7 @@ static const vshCmdInfo info_uri[] =3D { }; =20 static bool -cmdURI(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED) +cmdURI(vshControl *ctl, const vshCmd *cmd G_GNUC_UNUSED) { char *uri; vshAdmControlPtr priv =3D ctl->privData; @@ -263,7 +263,7 @@ static const vshCmdInfo info_version[] =3D { }; =20 static bool -cmdVersion(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED) +cmdVersion(vshControl *ctl, const vshCmd *cmd G_GNUC_UNUSED) { unsigned long libVersion; unsigned long long includeVersion; @@ -373,7 +373,7 @@ static const vshCmdInfo info_srv_list[] =3D { }; =20 static bool -cmdSrvList(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED) +cmdSrvList(vshControl *ctl, const vshCmd *cmd G_GNUC_UNUSED) { int nsrvs =3D 0; size_t i; @@ -1168,7 +1168,7 @@ vshAdmInit(vshControl *ctl) } =20 static void -vshAdmDeinitTimer(int timer ATTRIBUTE_UNUSED, void *opaque ATTRIBUTE_UNUSE= D) +vshAdmDeinitTimer(int timer G_GNUC_UNUSED, void *opaque G_GNUC_UNUSED) { /* nothing to be done here */ } @@ -1256,7 +1256,7 @@ vshAdmUsage(void) * Show version and options compiled in */ static void -vshAdmShowVersion(vshControl *ctl ATTRIBUTE_UNUSED) +vshAdmShowVersion(vshControl *ctl G_GNUC_UNUSED) { /* FIXME - list a copyright blurb, as in GNU programs? */ vshPrint(ctl, _("Virt-admin command line tool of libvirt %s\n"), VERSI= ON); diff --git a/tools/virt-host-validate-common.c b/tools/virt-host-validate-c= ommon.c index 804c0adc2d..7fb1335194 100644 --- a/tools/virt-host-validate-common.c +++ b/tools/virt-host-validate-common.c @@ -323,8 +323,8 @@ int virHostValidateCGroupControllers(const char *hvname, return ret; } #else /* !__linux__ */ -int virHostValidateCGroupControllers(const char *hvname ATTRIBUTE_UNUSED, - int controllers ATTRIBUTE_UNUSED, +int virHostValidateCGroupControllers(const char *hvname G_GNUC_UNUSED, + int controllers G_GNUC_UNUSED, virHostValidateLevel level) { virHostMsgFail(level, "%s", "This platform does not support cgroups"); diff --git a/tools/virt-login-shell-helper.c b/tools/virt-login-shell-helpe= r.c index 1a621ae53c..a24a14d1d3 100644 --- a/tools/virt-login-shell-helper.c +++ b/tools/virt-login-shell-helper.c @@ -144,8 +144,8 @@ show_version(void) =20 =20 static void -hideErrorFunc(void *opaque ATTRIBUTE_UNUSED, - virErrorPtr err ATTRIBUTE_UNUSED) +hideErrorFunc(void *opaque G_GNUC_UNUSED, + virErrorPtr err G_GNUC_UNUSED) { } =20 diff --git a/tools/vsh.c b/tools/vsh.c index bf8b6b412b..a9b2a84122 100644 --- a/tools/vsh.c +++ b/tools/vsh.c @@ -230,8 +230,8 @@ virErrorPtr last_error; * Quieten libvirt until we're done with the command. */ void -vshErrorHandler(void *opaque ATTRIBUTE_UNUSED, - virErrorPtr error ATTRIBUTE_UNUSED) +vshErrorHandler(void *opaque G_GNUC_UNUSED, + virErrorPtr error G_GNUC_UNUSED) { virFreeError(last_error); last_error =3D virSaveLastError(); @@ -1026,7 +1026,7 @@ vshCommandOptULWrap(vshControl *ctl, const vshCmd *cm= d, * <0 in all other cases (@value untouched) */ int -vshCommandOptStringQuiet(vshControl *ctl ATTRIBUTE_UNUSED, const vshCmd *c= md, +vshCommandOptStringQuiet(vshControl *ctl G_GNUC_UNUSED, const vshCmd *cmd, const char *name, const char **value) { vshCmdOpt *arg; @@ -1245,7 +1245,7 @@ vshCommandOptBool(const vshCmd *cmd, const char *name) * list of supported options in CMD->def->opts. */ const vshCmdOpt * -vshCommandOptArgv(vshControl *ctl ATTRIBUTE_UNUSED, const vshCmd *cmd, +vshCommandOptArgv(vshControl *ctl G_GNUC_UNUSED, const vshCmd *cmd, const vshCmdOpt *opt) { opt =3D opt ? opt->next : cmd->opts; @@ -1645,7 +1645,7 @@ vshCommandParse(vshControl *ctl, vshCommandParser *pa= rser, vshCmd **partial) =20 static vshCommandToken ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(3) vshCommandArgvGetArg(vshControl *ctl, vshCommandParser *parser, char **res, - bool report ATTRIBUTE_UNUSED) + bool report G_GNUC_UNUSED) { if (parser->arg_pos =3D=3D parser->arg_end) { *res =3D NULL; @@ -1897,7 +1897,7 @@ vshPrintExtra(vshControl *ctl, const char *format, ..= .) =20 =20 void -vshPrint(vshControl *ctl ATTRIBUTE_UNUSED, const char *format, ...) +vshPrint(vshControl *ctl G_GNUC_UNUSED, const char *format, ...) { va_list ap; char *str; @@ -1912,8 +1912,8 @@ vshPrint(vshControl *ctl ATTRIBUTE_UNUSED, const char= *format, ...) =20 =20 bool -vshTTYIsInterruptCharacter(vshControl *ctl ATTRIBUTE_UNUSED, - const char chr ATTRIBUTE_UNUSED) +vshTTYIsInterruptCharacter(vshControl *ctl G_GNUC_UNUSED, + const char chr G_GNUC_UNUSED) { #ifndef WIN32 if (ctl->istty && @@ -1933,7 +1933,7 @@ vshTTYAvailable(vshControl *ctl) =20 =20 int -vshTTYDisableInterrupt(vshControl *ctl ATTRIBUTE_UNUSED) +vshTTYDisableInterrupt(vshControl *ctl G_GNUC_UNUSED) { #ifndef WIN32 struct termios termset =3D ctl->termattr; @@ -1957,7 +1957,7 @@ vshTTYDisableInterrupt(vshControl *ctl ATTRIBUTE_UNUS= ED) =20 =20 int -vshTTYRestore(vshControl *ctl ATTRIBUTE_UNUSED) +vshTTYRestore(vshControl *ctl G_GNUC_UNUSED) { #ifndef WIN32 if (!ctl->istty) @@ -1987,8 +1987,8 @@ cfmakeraw(struct termios *attr) =20 =20 int -vshTTYMakeRaw(vshControl *ctl ATTRIBUTE_UNUSED, - bool report_errors ATTRIBUTE_UNUSED) +vshTTYMakeRaw(vshControl *ctl G_GNUC_UNUSED, + bool report_errors G_GNUC_UNUSED) { #ifndef WIN32 struct termios rawattr =3D ctl->termattr; @@ -2079,9 +2079,9 @@ static struct sigaction vshEventOldAction; =20 /* Signal handler installed in vshEventStart, removed in vshEventCleanup. = */ static void -vshEventInt(int sig ATTRIBUTE_UNUSED, - siginfo_t *siginfo ATTRIBUTE_UNUSED, - void *context ATTRIBUTE_UNUSED) +vshEventInt(int sig G_GNUC_UNUSED, + siginfo_t *siginfo G_GNUC_UNUSED, + void *context G_GNUC_UNUSED) { char reason =3D VSH_EVENT_INTERRUPT; if (vshEventFd >=3D 0) @@ -2091,7 +2091,7 @@ vshEventInt(int sig ATTRIBUTE_UNUSED, =20 /* Event loop handler used to limit length of waiting for any other event.= */ void -vshEventTimeout(int timer ATTRIBUTE_UNUSED, +vshEventTimeout(int timer G_GNUC_UNUSED, void *opaque) { vshControl *ctl =3D opaque; @@ -2410,8 +2410,8 @@ vshAskReedit(vshControl *ctl, const char *msg, bool r= elax_avail) #else /* WIN32 */ int vshAskReedit(vshControl *ctl, - const char *msg ATTRIBUTE_UNUSED, - bool relax_avail ATTRIBUTE_UNUSED) + const char *msg G_GNUC_UNUSED, + bool relax_avail G_GNUC_UNUSED) { vshDebug(ctl, VSH_ERR_WARNING, "%s", _("This function is not " "supported on WIN32 platform")); @@ -2907,8 +2907,8 @@ vshReadlineParse(const char *text, int state) =20 static char ** vshReadlineCompletion(const char *text, - int start ATTRIBUTE_UNUSED, - int end ATTRIBUTE_UNUSED) + int start G_GNUC_UNUSED, + int end G_GNUC_UNUSED) { char **matches =3D (char **) NULL; =20 @@ -3017,7 +3017,7 @@ vshReadlineDeinit(vshControl *ctl) } =20 char * -vshReadline(vshControl *ctl ATTRIBUTE_UNUSED, const char *prompt) +vshReadline(vshControl *ctl G_GNUC_UNUSED, const char *prompt) { return readline(prompt); } @@ -3025,14 +3025,14 @@ vshReadline(vshControl *ctl ATTRIBUTE_UNUSED, const= char *prompt) #else /* !WITH_READLINE */ =20 static int -vshReadlineInit(vshControl *ctl ATTRIBUTE_UNUSED) +vshReadlineInit(vshControl *ctl G_GNUC_UNUSED) { /* empty */ return 0; } =20 static void -vshReadlineDeinit(vshControl *ctl ATTRIBUTE_UNUSED) +vshReadlineDeinit(vshControl *ctl G_GNUC_UNUSED) { /* empty */ } @@ -3380,7 +3380,7 @@ const vshCmdInfo info_pwd[] =3D { }; =20 bool -cmdPwd(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED) +cmdPwd(vshControl *ctl, const vshCmd *cmd G_GNUC_UNUSED) { char *cwd; bool ret =3D true; @@ -3410,7 +3410,7 @@ const vshCmdInfo info_quit[] =3D { }; =20 bool -cmdQuit(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED) +cmdQuit(vshControl *ctl, const vshCmd *cmd G_GNUC_UNUSED) { ctl->imode =3D false; return true; @@ -3435,7 +3435,7 @@ const vshCmdInfo info_selftest[] =3D { * the per-command options structure. */ bool cmdSelfTest(vshControl *ctl, - const vshCmd *cmd ATTRIBUTE_UNUSED) + const vshCmd *cmd G_GNUC_UNUSED) { const vshCmdGrp *grp; const vshCmdDef *def; @@ -3538,8 +3538,8 @@ cmdComplete(vshControl *ctl, const vshCmd *cmd) =20 =20 bool -cmdComplete(vshControl *ctl ATTRIBUTE_UNUSED, - const vshCmd *cmd ATTRIBUTE_UNUSED) +cmdComplete(vshControl *ctl G_GNUC_UNUSED, + const vshCmd *cmd G_GNUC_UNUSED) { return false; } diff --git a/tools/wireshark/src/packet-libvirt.c b/tools/wireshark/src/pac= ket-libvirt.c index dc3aa410e5..7096e72e67 100644 --- a/tools/wireshark/src/packet-libvirt.c +++ b/tools/wireshark/src/packet-libvirt.c @@ -443,7 +443,7 @@ dissect_libvirt_payload(tvbuff_t *tvb, proto_tree *tree, =20 static int dissect_libvirt_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tre= e, - void *opaque ATTRIBUTE_UNUSED) + void *opaque G_GNUC_UNUSED) { goffset offset; guint32 prog, proc, type, serial, status; @@ -508,14 +508,14 @@ dissect_libvirt_message(tvbuff_t *tvb, packet_info *p= info, proto_tree *tree, } =20 static guint -get_message_len(packet_info *pinfo ATTRIBUTE_UNUSED, tvbuff_t *tvb, int of= fset, void *data ATTRIBUTE_UNUSED) +get_message_len(packet_info *pinfo G_GNUC_UNUSED, tvbuff_t *tvb, int offse= t, void *data G_GNUC_UNUSED) { return tvb_get_ntohl(tvb, offset); } =20 static int dissect_libvirt(tvbuff_t *tvb, packet_info *pinfo, - proto_tree *tree, void *data ATTRIBUTE_UNUSED) + proto_tree *tree, void *data G_GNUC_UNUSED) { /* Another magic const - 4; simply, how much bytes * is needed to tell the length of libvirt packet. */ --=20 2.19.2 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list