From nobody Mon Feb 9 14:00:02 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=1571059067; cv=none; d=zoho.com; s=zohoarc; b=odXEY7lnNaSaEvQVSdoZydZL6SyRdtReNt7maXDOVO3sxZSBTZqvlD83e77ICNHoyjBTGaVWabWfCII5aHzJkUSF8ETojHAkXIE/bx1QW7BeWzQPrxGkMFMStrMv75YDF+bDQsamzXG5Zlh+H13vvhe/TzMjP/dUYH4VIY3eJZU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1571059067; 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=uCuNzjJryGP5HvoeXFsy3F2FErFCDMyEJiGJm1LN2L8=; b=YLRa+EdcNC+QGUwUbL9nCoQLhK8+nJsrU81Tu4Y60R+Stj9C+6qOmpDEOldkgxl74mT7TaY+lL3QMlS0SWhgbFU9l5JLL1mxOIzVMM+8arGyG54fIBjSbJJZEJRTfNpLL0DMAzAf+STbrnh9fNSRwAeTPm6FI02shO6/Bwzeayw= 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 1571059067483191.3465718488021; Mon, 14 Oct 2019 06:17:47 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BAF1711A38; Mon, 14 Oct 2019 13:17:45 +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 843C880A6; Mon, 14 Oct 2019 13:17:45 +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 2B9F06B4A9; Mon, 14 Oct 2019 13:17:45 +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 x9EDGkWv017610 for ; Mon, 14 Oct 2019 09:16:46 -0400 Received: by smtp.corp.redhat.com (Postfix) id 3ED6060126; Mon, 14 Oct 2019 13:16:46 +0000 (UTC) Received: from icr.brq.redhat.com (unknown [10.43.2.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id BC4FB600CD for ; Mon, 14 Oct 2019 13:16:45 +0000 (UTC) From: =?UTF-8?q?J=C3=A1n=20Tomko?= To: libvir-list@redhat.com Date: Mon, 14 Oct 2019 15:15:51 +0200 Message-Id: <1770c6091b7de941346e0553c7bd8e616f86b867.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 33/35] syntax-check: check for G_GNUC_UNUSED instead of ATTRIBUTE_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.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Mon, 14 Oct 2019 13:17:46 +0000 (UTC) Signed-off-by: J=C3=A1n Tomko --- build-aux/syntax-check.mk | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/build-aux/syntax-check.mk b/build-aux/syntax-check.mk index f4712c24c3..c220dadd6c 100644 --- a/build-aux/syntax-check.mk +++ b/build-aux/syntax-check.mk @@ -370,7 +370,7 @@ sc_flags_usage: | $(GREP) -c '\(long\|unsigned\) flags')" !=3D 4 && \ { echo '$(ME): new API should use "unsigned int flags"' 1>&2; \ exit 1; } || : - @prohibit=3D' flags ATTRIBUTE_UNUSED' \ + @prohibit=3D' flags G_GNUC_UNUSED' \ exclude=3D'virSecurityDomainImageLabelFlags' \ halt=3D'flags should be checked with virCheckFlags' \ $(_sc_search_regexp) @@ -620,12 +620,12 @@ sc_prohibit_return_as_function: halt=3D'avoid extra () with return statements' \ $(_sc_search_regexp) =20 -# ATTRIBUTE_UNUSED should only be applied in implementations, not +# G_GNUC_UNUSED should only be applied in implementations, not # header declarations -sc_avoid_attribute_unused_in_header: - @prohibit=3D'^[^#]*ATTRIBUTE_UNUSED([^:]|$$)' \ +sc_avoid_g_gnuc_unused_in_header: + @prohibit=3D'^[^#]*G_GNUC_UNUSED([^:]|$$)' \ in_vc_files=3D'\.h$$' \ - halt=3D'use ATTRIBUTE_UNUSED in .c rather than .h files' \ + halt=3D'use G_GNUC_UNUSED in .c rather than .h files' \ $(_sc_search_regexp) =20 sc_prohibit_int_index: @@ -2295,7 +2295,7 @@ exclude_file_name_regexp--sc_prohibit_int_ijk =3D \ exclude_file_name_regexp--sc_prohibit_unsigned_pid =3D \ ^(include/libvirt/.*\.h|src/(qemu/qemu_driver\.c|driver-hypervisor\.h|li= bvirt(-[a-z]*)?\.c|.*\.x|util/vir(polkit|systemd)\.c)|tests/virpolkittest\.= c|tools/virsh-domain\.c)$$ =20 -exclude_file_name_regexp--sc_avoid_attribute_unused_in_header =3D \ +exclude_file_name_regexp--sc_avoid_g_gnuc_unused_in_header =3D \ ^(src/util/virlog\.h|src/network/bridge_driver\.h)$$ =20 exclude_file_name_regexp--sc_prohibit_mixed_case_abbreviations =3D \ --=20 2.19.2 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list