From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 42F33A0501; Mon, 11 Apr 2022 20:24:49 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2384341614; Mon, 11 Apr 2022 20:24:49 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 02B1941611 for ; Mon, 11 Apr 2022 20:24:48 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id 4E3E0209DDA2; Mon, 11 Apr 2022 11:24:47 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 4E3E0209DDA2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1649701487; bh=pDvUPdddHiOrvImw5bmvPLXalo48DsOeL3LHueZMG0g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=l8eZ1yK4jLKn8jq6kmPvCjiTIg0pxaU1aMql3oRkHoqNACy9B83K1KS4a+NQ7yzfN dvrpcOOIGtRs9TYrilAFqRi1RNPrbPNimIMcms3tVzTQDJLfTJdVg8GllICCryiFG8 RSTY0v+HSOGuXdoZhaHxp+RbkKnrvjg+q36yR5HQ= Date: Mon, 11 Apr 2022 11:24:47 -0700 From: Tyler Retzlaff To: Bruce Richardson Cc: Mattias =?iso-8859-1?Q?R=F6nnblom?= , dev@dpdk.org, Thomas Monjalon , David Marchand , Honnappa.Nagarahalli@arm.com, mb@smartsharesystems.com, hofors@lysator.liu.se Subject: Re: [RFC 1/3] eal: add macro to warn for unused function return values Message-ID: <20220411182447.GA19066@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> References: <20220410135140.161842-1-mattias.ronnblom@ericsson.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Mon, Apr 11, 2022 at 10:16:35AM +0100, Bruce Richardson wrote: > On Sun, Apr 10, 2022 at 03:51:38PM +0200, Mattias Rönnblom wrote: > > This patch adds a wrapper macro __rte_warn_unused_result for the > > warn_unused_result function attribute. > > > > Marking a function __rte_warn_unused_result will make the compiler > > emit a warning in case the caller does not use the function's return > > value. > > > > Signed-off-by: Mattias Rönnblom > > --- > > This is good to have, thanks. > > Series-acked-by: Bruce Richardson +1 Series-acked-by: Tyler Retzlaff