From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) by dpdk.org (Postfix) with ESMTP id 76DCE3238 for ; Thu, 6 Oct 2016 15:26:48 +0200 (CEST) Received: by mail-wm0-f43.google.com with SMTP id 197so52710361wmk.1 for ; Thu, 06 Oct 2016 06:26:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=CQtRdoiLgK70JYHEadjU35WpBMHus/oBJs7njzcsn7Q=; b=ZRhtdjswhHdQjHojlj+B9itb5XXTJDUE1HpPB6PTVyHdQ82XjsAH3zEfAk/CW6tnUi NmI+bSwV1G8FgFV/v1Fdtqu5GRVAiqlrtyfg/KzoLTyfNdPvaSE8Hv/Ri1nTd+bz1S2u mFVB5MLF+I2l2cI8SM1k+GucTWpO8evZAOT1Y827yECx1FK8k0nx0KvvSntWqNs25Itg oOateDuQfVAt5d0n1vfHU6mCMk0qt75FLgIaSEC/k+CMqX+YY04sTPUiFZQmhGC2X67e QLVbOcoZoiWCHjJ8G5+3eN1mrUdZYM5ECi64YLGL8IfB59LRpDZWvH+QRlXqDaLEvSpR TX6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=CQtRdoiLgK70JYHEadjU35WpBMHus/oBJs7njzcsn7Q=; b=TNJaMQD5KBoKWluvX//1WLUBU9cct0j0couTS+FYsdoy2Tfud1IWNomgvJFJnSsBxE tG63j0TawJpCjPThKBKL1xyPSJ5FeSndt1lLaCJz3mpsSocdt2ner8cXUrUoLVAFZHYX zMsbHJo974UVHdIZi5I7VPjMIGUt6r3nZdJlso+wUIrqEWE+MTuUiDh1Nqz/mAsMwmW5 IEtQAte/d+1M7PKPsuO4Psjyg23w1Kd/ARW63cv3Xa37q07khSvFf217j9Hs5fyVaT8c qlMzO+qDkHg5u2OrL/sFoX0hTSqRyvidg3s93WHzAgq83/8FqfUCi2+/abdYlP4ibZm3 hvkg== X-Gm-Message-State: AA6/9RncNr0cIbJrxR+/uDRVC+VEA7WwfGWVaae2LQglTgogWL9+HTKmaYe8VNNPDHQhO7Ae X-Received: by 10.28.99.70 with SMTP id x67mr14441955wmb.72.1475760408256; Thu, 06 Oct 2016 06:26:48 -0700 (PDT) Received: from xps13.localnet (232.204.154.77.rev.sfr.net. [77.154.204.232]) by smtp.gmail.com with ESMTPSA id p13sm15078424wmd.1.2016.10.06.06.26.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Oct 2016 06:26:47 -0700 (PDT) From: Thomas Monjalon To: Olivier Matz Cc: dev@dpdk.org, sergio.gonzalez.monroy@intel.com Date: Thu, 06 Oct 2016 15:25:58 +0200 Message-ID: <26353687.pnS7phqusY@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <1474288011-17096-1-git-send-email-olivier.matz@6wind.com> References: <1474288011-17096-1-git-send-email-olivier.matz@6wind.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Subject: Re: [dpdk-dev] [PATCH] eal: fix compilation when optimization level is O1 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, 06 Oct 2016 13:26:48 -0000 2016-09-19 14:26, Olivier Matz: > When compiled with EXTRA_CFLAGS=3D"-O1", the compiler is not > able to detect that size is always initialized when used, and > issues a wrong warning: >=20 > eal_memory.c: In function =E2=80=98rte_eal_hugepage_attach=E2=80=99= : > eal_memory.c:1684:3: error: =E2=80=98size=E2=80=99 may be used unin= itialized in this > function [-Werror=3Dmaybe-uninitialized] > munmap(hp, size); > ^ >=20 > Workaround this issue by initializing size to 0. > Seen on gcc (Debian 5.4.1-1) 5.4.1 20160803. >=20 > Signed-off-by: Olivier Matz Applied, thanks