Received: from eggs.gnu.org ([2001:4830:134:3::10]:60760) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c7qPV-0007DC-Uq for qemu-devel@nongnu.org; Fri, 18 Nov 2016 16:09:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c7qPS-00029g-Pg for qemu-devel@nongnu.org; Fri, 18 Nov 2016 16:09:25 -0500 Received: from mx1.redhat.com ([209.132.183.28]:47204) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c7qPS-00028o-GO for qemu-devel@nongnu.org; Fri, 18 Nov 2016 16:09:22 -0500 References: <1474471622-12802-1-git-send-email-felipe@nutanix.com> <982b8148-63b1-1339-7794-66196976abba@redhat.com> <9FB72033-848C-46FB-B671-99169A1FF307@nutanix.com> From: Eric Blake Message-ID: <419d6323-ab2f-5414-cfc9-4bc9a0433de1@redhat.com> Date: Fri, 18 Nov 2016 15:09:18 -0600 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Qxr0xgpg4MSvh0LP1iIdOCRqK3UtreVBv" Subject: Re: [Qemu-devel] [PATCH 1/2] compiler: add ignore_value() macro List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Felipe Franciosi , Pavel Dovgalyuk , "Daniel P. Berrange" , Markus Armbruster Cc: qemu-devel This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Qxr0xgpg4MSvh0LP1iIdOCRqK3UtreVBv From: Eric Blake To: Felipe Franciosi , Pavel Dovgalyuk , "Daniel P. Berrange" , Markus Armbruster Cc: qemu-devel Message-ID: <419d6323-ab2f-5414-cfc9-4bc9a0433de1@redhat.com> Subject: Re: [PATCH 1/2] compiler: add ignore_value() macro References: <1474471622-12802-1-git-send-email-felipe@nutanix.com> <982b8148-63b1-1339-7794-66196976abba@redhat.com> <9FB72033-848C-46FB-B671-99169A1FF307@nutanix.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 10/25/2016 10:21 AM, Felipe Franciosi wrote: >=20 >> On 12 Oct 2016, at 18:20, Felipe Franciosi wrote:= >> >> >>> On 21 Sep 2016, at 19:15, Eric Blake wrote: >>> >>> On 09/21/2016 10:27 AM, Felipe Franciosi wrote: >>>> On GCC versions 3.4 and newer, simply using (void) in front of a >>>> function that has been declared with WUR will no longer suppress a >>>> compilation warning. This commit brings the ignore_value() macro fro= m >>>> GNULIB's ignore_value.h, licensed under the terms of LGPLv2+. >>>> >>>> See the link below for the original author's comment: >>>> https://lists.nongnu.org/archive/html/qemu-devel/2016-09/msg05148.ht= ml >>>> >>>> Signed-off-by: Felipe Franciosi >>>> --- >>>> include/qemu/compiler.h | 8 ++++++++ >>>> 1 file changed, 8 insertions(+) >>> >>> Reviewed-by: Eric Blake >>> >=20 > Ping? It's missed 2.8, but I still think it is a useful patch; I just commented on another thread about a case where a cast-to-void might look better with the use of ignore_value(). --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --Qxr0xgpg4MSvh0LP1iIdOCRqK3UtreVBv Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJYL23+AAoJEKeha0olJ0NqPkEH/jk+1y7PtiYsDNje2ciVZqPW /Iw7zpZCsF2hMTN30QAB2nmvpxtzNoZfeLgj0egaPRd6gh4vJuv5T5uETJ0VVPRr 2qBeecDporiHcdxsz8RG+Yyvvs0fBOQyYfGzabZ3MxNYBVMk8BVz0mOb7PPWw5Qq 7AsPk/u5HWGrxbk80HhX6gU1CrynuiGLhD5RLCA+g5ZXTewkSxyEDbZAT0CLJphK nyim0TBqbS1HMrm0K2MTYi+34rZpwl0iph8hmyW78TKK3WJcGFF5FLUaNO7ZNExY IsVLu4c6kh1vRYtIqo0OGREENYMwCYlqvfI26OLTXKB5aKDIgLX5U0VJaADdxgY= =CX7k -----END PGP SIGNATURE----- --Qxr0xgpg4MSvh0LP1iIdOCRqK3UtreVBv--