From nobody Mon Feb 9 00:02:36 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=1571059230; cv=none; d=zoho.com; s=zohoarc; b=m5XtbsOpL75/cqHBAJHV5Xr3IGY/njpNyxUo5olYQkVf8PqHFGFpXEF1B9YMg+JgFImmyCTKUF+nOLFxRvEENeXMelkYlU77MRsZtgr+aexWA0vj6iAlV85TV+uouNWzqlP5L1KC0+3C9zbV18BnJ04Xon73l5ID/W7qbEPc4VY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1571059230; 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=jMHff39AnlwqamiiJ5m83wI04NEkqtW7Ko3PSINAzHI=; b=c98ciulouKBbCFGNkrOqDYpDThXCNkniwfDs2nKyPXTjslrCeiANMtH0pPua7VJS6l8p6WLFmpI/RjR256XGXGYcxT7ktctxCHc6HXLleeAgjH3eCQ9dbzON/ZXgu10igr8kvm7lMPQ6RPdN0o20tipUij9s/1sr+tS5oRv3D8c= 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 1571059230697448.30964757599656; Mon, 14 Oct 2019 06:20:30 -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 11574793CC; Mon, 14 Oct 2019 13:20:29 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DF0335C890; Mon, 14 Oct 2019 13:20:28 +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 97E17180BAA0; Mon, 14 Oct 2019 13:20:28 +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 x9EDGlun017630 for ; Mon, 14 Oct 2019 09:16:47 -0400 Received: by smtp.corp.redhat.com (Postfix) id D221060126; Mon, 14 Oct 2019 13:16:47 +0000 (UTC) Received: from icr.brq.redhat.com (unknown [10.43.2.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5BE0E600CD for ; Mon, 14 Oct 2019 13:16:47 +0000 (UTC) From: =?UTF-8?q?J=C3=A1n=20Tomko?= To: libvir-list@redhat.com Date: Mon, 14 Oct 2019 15:15:53 +0200 Message-Id: <34c3d454b96d747af97fe55e130f6a7f4d5a92d3.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 35/35] internal: remove no longer used ATTRIBUTE macros 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.25]); Mon, 14 Oct 2019 13:20:29 +0000 (UTC) Signed-off-by: J=C3=A1n Tomko --- docs/apibuild.py | 2 -- src/internal.h | 31 ------------------------------- 2 files changed, 33 deletions(-) diff --git a/docs/apibuild.py b/docs/apibuild.py index b11d3fd5a9..4f0d170975 100755 --- a/docs/apibuild.py +++ b/docs/apibuild.py @@ -71,8 +71,6 @@ admin_included_files =3D { } =20 ignored_words =3D { - "ATTRIBUTE_UNUSED": (0, "macro keyword"), - "ATTRIBUTE_SENTINEL": (0, "macro keyword"), "G_GNUC_UNUSED": (0, "macro keyword"), "G_GNUC_NULL_TERMINATED": (0, "macro keyword"), "VIR_DEPRECATED": (0, "macro keyword"), diff --git a/src/internal.h b/src/internal.h index 56e99241b0..7737d9a209 100644 --- a/src/internal.h +++ b/src/internal.h @@ -93,33 +93,6 @@ #define NUL_TERMINATE(buf) do { (buf)[sizeof(buf)-1] =3D '\0'; } while (0) #define ARRAY_CARDINALITY(Array) (sizeof(Array) / sizeof(*(Array))) =20 -/** - * ATTRIBUTE_UNUSED: - * - * Macro to flag consciously unused parameters to functions - */ -#ifndef ATTRIBUTE_UNUSED -# define ATTRIBUTE_UNUSED __attribute__((__unused__)) -#endif - -/** - * ATTRIBUTE_NORETURN: - * - * Macro to indicate that a function won't return to the caller - */ -#ifndef ATTRIBUTE_NORETURN -# define ATTRIBUTE_NORETURN __attribute__((__noreturn__)) -#endif - -/** - * ATTRIBUTE_SENTINEL: - * - * Macro to check for NULL-terminated varargs lists - */ -#ifndef ATTRIBUTE_SENTINEL -# define ATTRIBUTE_SENTINEL __attribute__((__sentinel__)) -#endif - /** * ATTRIBUTE_NOINLINE: * @@ -150,10 +123,6 @@ # endif #endif =20 -#ifndef ATTRIBUTE_RETURN_CHECK -# define ATTRIBUTE_RETURN_CHECK __attribute__((__warn_unused_result__)) -#endif - /** * ATTRIBUTE_PACKED * --=20 2.19.2 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list