From nobody Sat Feb 7 13:41:43 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=1570448680; cv=none; d=zoho.com; s=zohoarc; b=Wu4T7Peh7qgyrczlSzAulxWVBKQ1fXyaLJPzmvM8fN0o5bpJLUnCsTDFIcir8oYcDbwMhQmGBVV4/x0pjzqTbBQ+eUEKSZgIAhyPQaDfQs5z6M0Frpn+Mi0s/bSRNvXuzlqvA0oE8lS0GoazV8kNw19joBU+gy7OdHj4X42cw9I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1570448680; 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:ARC-Authentication-Results; bh=6f8NA1SEiVLCjvGShQhTl3WRXlUA0QXseDM+mSaOvOs=; b=dyJDE8LUO92S9fHSz6Vwpe9zfAJt3OGYmCAD+fuBaT68Jix292yjTJUzCT5BoWPoHbN+EDgnzIP7ZGc466xdw8JDM3YfobtxIFetaJ6/ahOJGyuwhe1LO5LsLYw5XkKMBhjaRH02ju2LQGvmE63NTjjGuLoHDxlSRhUZP0KddOU= 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 1570448680209550.497674189894; Mon, 7 Oct 2019 04:44:40 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3180E81DE0; Mon, 7 Oct 2019 11:44:37 +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 0921B1001DD7; Mon, 7 Oct 2019 11:44:37 +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 82DAD4E58A; Mon, 7 Oct 2019 11:44:36 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x97BiYTR008750 for ; Mon, 7 Oct 2019 07:44:34 -0400 Received: by smtp.corp.redhat.com (Postfix) id 6E149196B2; Mon, 7 Oct 2019 11:44:34 +0000 (UTC) Received: from dhcp-16-231.lcy.redhat.com (unknown [10.42.16.231]) by smtp.corp.redhat.com (Postfix) with ESMTP id DEB2219D70; Mon, 7 Oct 2019 11:44:33 +0000 (UTC) From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Date: Mon, 7 Oct 2019 12:44:25 +0100 Message-Id: <20191007114428.4033-3-berrange@redhat.com> In-Reply-To: <20191007114428.4033-1-berrange@redhat.com> References: <20191007114428.4033-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 2/5] build: drop the ignore-value gnulib module 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.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Mon, 07 Oct 2019 11:44:37 +0000 (UTC) We don't need to care about very old GCC versions, so implementing the ignore_value macro directly is not a significant burden. Signed-off-by: Daniel P. Berrang=C3=A9 --- bootstrap.conf | 1 - src/internal.h | 8 +++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/bootstrap.conf b/bootstrap.conf index 7b20f1c371..8d3963fa2c 100644 --- a/bootstrap.conf +++ b/bootstrap.conf @@ -50,7 +50,6 @@ getpeername getsockname gettimeofday gnumakefile -ignore-value intprops ioctl isatty diff --git a/src/internal.h b/src/internal.h index fc251067f0..e1a69be9f2 100644 --- a/src/internal.h +++ b/src/internal.h @@ -63,7 +63,13 @@ #include "libvirt/virterror.h" =20 #include "c-strcase.h" -#include "ignore-value.h" + +/* Merely casting to (void) is not sufficient since the + * introduction of the "warn_unused_result" attribute + */ +#define ignore_value(x) \ + (__extension__ ({ __typeof__ (x) __x =3D (x); (void) __x; })) + =20 /* String equality tests, suggested by Jim Meyering. */ #define STREQ(a, b) (strcmp(a, b) =3D=3D 0) --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list