From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] mbuf & mempool: explicit typecast on function return Date: Mon, 17 Aug 2015 17:38:44 +0200 Message-ID: <6153994.9uzA4yZQ0b@xps13> References: <1439370664-25728-1-git-send-email-balabanovsv@ecotelecom.ru> <55D197E8.5040501@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Sergey Balabanov Return-path: Received: from mail-wi0-f173.google.com (mail-wi0-f173.google.com [209.85.212.173]) by dpdk.org (Postfix) with ESMTP id 1E45A8DA9 for ; Mon, 17 Aug 2015 17:39:59 +0200 (CEST) Received: by wicja10 with SMTP id ja10so73561470wic.1 for ; Mon, 17 Aug 2015 08:39:59 -0700 (PDT) In-Reply-To: <55D197E8.5040501@6wind.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2015-08-17 10:14, Olivier MATZ: > Hi Sergey, > > On 08/12/2015 11:11 AM, Sergey Balabanov wrote: > > When DPDK is being compiled in C++ project using g++ then > > 'invalid conversion from' error appears. Added explicit > > typecast on function return to get rid of the error. > > > > Signed-off-by: Sergey Balabanov > > > Fixes: 7755baae8378 ("mbuf: silence warning on pointer arithmetic") > Fixes: 6cf14ce4ce6c ("mempool: silence warning on pointer arithmetic") > > Acked-by: Olivier Matz Split and applied, thanks