From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] ring: use direct cast to objtype fixes build error Date: Thu, 06 Apr 2017 16:25:39 +0200 Message-ID: <2247283.QVfK3IDVRn@xps13> References: <1491487187-19577-1-git-send-email-ed.czeck@atomicrules.com> <20170406161816.6732c826@glumotte.dev.6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Cc: dev@dpdk.org, bruce.richardson@intel.com To: Olivier MATZ , Ed Czeck Return-path: Received: from mail-wr0-f172.google.com (mail-wr0-f172.google.com [209.85.128.172]) by dpdk.org (Postfix) with ESMTP id 18C222BF5 for ; Thu, 6 Apr 2017 16:25:40 +0200 (CEST) Received: by mail-wr0-f172.google.com with SMTP id t20so64912492wra.1 for ; Thu, 06 Apr 2017 07:25:40 -0700 (PDT) In-Reply-To: <20170406161816.6732c826@glumotte.dev.6wind.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2017-04-06 16:18, Olivier MATZ: > On Thu, 6 Apr 2017 09:59:47 -0400, Ed Czeck wrote: > > build error: > > include/rte_ring.h:459:22: error: invalid conversion from =E2=80=98= void*=E2=80=99 > > to =E2=80=98void**=E2=80=99 [-fpermissive] > > ENQUEUE_PTRS(r, &r[1], prod_head, obj_table, n, void *); > >=20 > > Implicit casts of void* to void** are considered warnings in some > > compilers. E.g. g++ version 5.8. Cast directly to object types > >=20 > > Signed-off-by: Ed Czeck >=20 > Acked-by: Olivier Matz Does this error happen only with C++? Please could you give a Fixes line?