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 90143A04FD; Mon, 11 Apr 2022 11:16:43 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6BBDC40685; Mon, 11 Apr 2022 11:16:43 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 8B8EE4067B for ; Mon, 11 Apr 2022 11:16:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649668602; x=1681204602; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=Uh0nKzCPLmso5I9NVuxXQIhlhJp49TlOTMaHkKxHKdY=; b=StU8tL9fJiCc6HevM5HpFD4P44IPK93ONryh089PkFWAnWsKLTMxq1ll 79WuvHJ+4zNU0iZmYV9phDvyVS2kjU/Fnv8zG+GH3caT1EtlONP/5jFO5 lqURXPBSaEhhx/ekQKmhcc0G7C+s6vbfyXI6G5axo9vTwmisrSXM+Z5y2 e455m5VJGnvPv/d/8wYfLML4s9pIUPjT6HFz9iAoaiBKppnt7J233imji tqHXiSc2XPHNfQ+CYVE6AuLXXFSQI1grC2qCwtyA/nVMRoTCtZ9HmIQu6 iC5Pz1EuEvPJZDuuXXz9uXxCAiO5V8B51UPlMmQ8ZAOiMqfdYOj3qyZPp w==; X-IronPort-AV: E=McAfee;i="6400,9594,10313"; a="249354953" X-IronPort-AV: E=Sophos;i="5.90,251,1643702400"; d="scan'208";a="249354953" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Apr 2022 02:16:40 -0700 X-IronPort-AV: E=Sophos;i="5.90,251,1643702400"; d="scan'208";a="644015159" Received: from bricha3-mobl.ger.corp.intel.com ([10.213.197.243]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-SHA; 11 Apr 2022 02:16:38 -0700 Date: Mon, 11 Apr 2022 10:16:35 +0100 From: Bruce Richardson To: Mattias =?iso-8859-1?Q?R=F6nnblom?= Cc: 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: 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: <20220410135140.161842-1-mattias.ronnblom@ericsson.com> 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 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