From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from wes1-so2.wedos.net (wes1-so2.wedos.net [46.28.106.16]) by dpdk.org (Postfix) with ESMTP id EB28D37A4 for ; Thu, 14 Jul 2016 18:31:07 +0200 (CEST) Received: from jvn (dynamic-109-81-211-32.ipv4.broadband.iol.cz [109.81.211.32]) by wes1-so2.wedos.net (Postfix) with ESMTPSA id 3rr1RD2VB7z8Hp; Thu, 14 Jul 2016 18:31:04 +0200 (CEST) Date: Thu, 14 Jul 2016 18:31:11 +0200 From: viktorin@rehivetech.com To: Maxime Coquelin Cc: huawei.xie@intel.com, yuanhan.liu@linux.intel.com, dev@dpdk.org, Jianfeng Tan Message-ID: <20160714183111.4d44e564@jvn> In-Reply-To: <1468315825-24089-1-git-send-email-maxime.coquelin@redhat.com> References: <1468315825-24089-1-git-send-email-maxime.coquelin@redhat.com> Organization: RehiveTech X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-dev] net/virtio-user: Fix missing brackets in if condition X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jul 2016 16:31:08 -0000 On Tue, 12 Jul 2016 11:30:25 +0200 Maxime Coquelin wrote: > The error is reported using test build script: I recommend to note that the error is reported only by GCC 6+. >=20 > $ scripts/test-build.sh x86_64-native-linuxapp-gcc > ... > drivers/net/virtio/virtio_user_ethdev.c: In function =E2=80=98virtio_user= _pmd_devinit=E2=80=99: > drivers/net/virtio/virtio_user_ethdev.c:345:2: error: this =E2=80=98if=E2= =80=99 clause does not guard... [-Werror=3Dmisleading-indentation] > if (rte_kvargs_count(kvlist, VIRTIO_USER_ARG_PATH) =3D=3D 1) > ^~ >=20 > Fixes: 404bd6bfe360 ("net/virtio-user: fix return value not checked") >=20 > Cc: Jianfeng Tan > Signed-off-by: Maxime Coquelin > Acked-by: Yuanhan Liu >=20 Reviewed-by: Jan Viktorin