From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] examples/ip_pipeline: fix build error for gcc 4.8 Date: Tue, 14 Jun 2016 21:04:16 +0200 Message-ID: <1868672.fp3FqAkN9z@xps13> References: <1465472328-226671-1-git-send-email-danielx.t.mrzyglod@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Cc: dev@dpdk.org, jasvinder.singh@intel.com, cristian.dumitrescu@intel.com To: Daniel Mrzyglod Return-path: Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54]) by dpdk.org (Postfix) with ESMTP id 4AB239A87 for ; Tue, 14 Jun 2016 21:04:19 +0200 (CEST) Received: by mail-wm0-f54.google.com with SMTP id n184so134715404wmn.1 for ; Tue, 14 Jun 2016 12:04:19 -0700 (PDT) In-Reply-To: <1465472328-226671-1-git-send-email-danielx.t.mrzyglod@intel.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" 2016-06-09 13:38, Daniel Mrzyglod: > This patch fixes a maybe-uninitialized warning when compiling DPDK wi= th GCC 4.8 >=20 > examples/ip_pipeline/pipeline/pipeline_common_fe.c: In function 'app_= pipeline_track_pktq_out_to_link': > examples/ip_pipeline/pipeline/pipeline_common_fe.c:66:31: error: > 'reader' may be used uninitialized in this function [-Werror=3Dmaybe-= uninitialized] >=20 > struct app_pktq_out_params *pktq_out =3D >=20 > Fixes: 760064838ec0 ("examples/ip_pipeline: link routing output ports= to devices") >=20 > Signed-off-by: Daniel Mrzyglod For a weird reason, this patch triggers a new error: examples/ip_pipeline/pipeline/pipeline_common_fe.c:In function =E2=80=98= app_pipeline_track_pktq_out_to_link=E2=80=99: examples/ip_pipeline/pipeline/pipeline_common_fe.c:124:11: error: =E2=80=98id=E2=80=99 may be used uninitialized in this function = [-Werror=3Dmaybe-uninitialized] status =3D ptype->fe_ops->f_track(&pp, ^ In file included from examples/ip_pipeline/pipeline/pipeline_common_fe.= h:44:0, from examples/ip_pipeline/pipeline/pipeline_common_fe.= c:47: examples/ip_pipeline/app.h:734:26: note: =E2=80=98id=E2=80=99 was decla= red here uint32_t n_readers =3D 0, id, i; ^ examples/ip_pipeline/pipeline/pipeline_common_fe.c:97:11: error: =E2=80=98id=E2=80=99 may be used uninitialized in this function = [-Werror=3Dmaybe-uninitialized] status =3D ptype->fe_ops->f_track(&pp, ^ In file included from examples/ip_pipeline/pipeline/pipeline_common_fe.= h:44:0, from examples/ip_pipeline/pipeline/pipeline_common_fe.= c:47: examples/ip_pipeline/app.h:674:26: note: =E2=80=98id=E2=80=99 was decla= red here uint32_t n_readers =3D 0, id, i; ^