From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bart Van Assche Subject: Re: [PATCH 26/28] Avoid gcc 5.4 warning -Wunused-result Date: Sun, 9 Oct 2016 08:14:26 -0700 Message-ID: <3884fb5e-13a2-3ab6-0cce-66f73fbe84b7@acm.org> References: <1473109698-31408-1-git-send-email-jgunthorpe@obsidianresearch.com> <1473109698-31408-27-git-send-email-jgunthorpe@obsidianresearch.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1473109698-31408-27-git-send-email-jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Jason Gunthorpe , Doug Ledford , linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: Devesh Sharma , Hal Rosenstock , Mike Marciniszyn , Moni Shoua , Sean Hefty , Steve Wise , Tatyana Nikolova , Vladimir Sokolovsky , Yishai Hadas List-Id: linux-rdma@vger.kernel.org On 09/05/16 14:08, Jason Gunthorpe wrote: > It used to be you could suppress this with (void), however the gcc > developers have decided to get rid of that. > > So, look closely at each occurrence and decide what to do: > [ ... ] Hi Jason, Are you aware that there are less intrusive ways to suppress "unused result" warnings, e.g. by using a macro like the one below? #define UNUSED_VALUE(v) do { if (v) { } } while (0) Bart. -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html