From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f42.google.com (mail-wg0-f42.google.com [74.125.82.42]) by dpdk.org (Postfix) with ESMTP id 2F2C47E23 for ; Thu, 11 Dec 2014 02:03:59 +0100 (CET) Received: by mail-wg0-f42.google.com with SMTP id z12so5167790wgg.15 for ; Wed, 10 Dec 2014 17:03:59 -0800 (PST) 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:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=0hJb/TwL45XJ1pGXA0s/DY7EW/WgB1igp5QH6A3tMMU=; b=Qoru/V74T5WCs958EyDRhtWpBk4hTvYOzxYqP53zqIuGjoG+LZm7BN72p+6TJDc8g4 P9gA79bEs4Z1q+40Zvfy1co6YhrjEA7pA5hnI4SXwp1ddo8wg4l49zyNqCLuNum9HQvA CvoIv/G0X6wDs/qeVgXwBZyEoh1Lw76TlgddFVdaT56hktYRe3LQCGeOEsW2e/HkNSvb kJzGQC6xh8noISH8z71Vosial4DaRULXQDu8ADAk1PtUBs+eUegKBXF+eFt7DMbv+hxl AqPAg1oBCVn0s133QJVemjKo+CzgJLi76iozep8sqhQefguF3ewVbrz0J5Ep567Vx9yd Xsbw== X-Gm-Message-State: ALoCoQnVdgUZYox51AtR4AbeCZvrXJblSlbpmA+27KJuMe9XKpjwDNMY6FceMXsm47qbTV0n7nn7 X-Received: by 10.194.92.176 with SMTP id cn16mr11295084wjb.62.1418259839093; Wed, 10 Dec 2014 17:03:59 -0800 (PST) Received: from xps13.localnet ([88.249.222.12]) by mx.google.com with ESMTPSA id be4sm782365wib.16.2014.12.10.17.03.57 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 10 Dec 2014 17:03:58 -0800 (PST) From: Thomas Monjalon To: Helin Zhang Date: Thu, 11 Dec 2014 02:03:26 +0100 Message-ID: <6865199.IsyIyzB9zb@xps13> Organization: 6WIND User-Agent: KMail/4.14.3 (Linux/3.17.4-1-ARCH; KDE/4.14.3; x86_64; ; ) In-Reply-To: <1418115370-31965-1-git-send-email-helin.zhang@intel.com> References: <1418115370-31965-1-git-send-email-helin.zhang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH] enic: fix of compile error 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, 11 Dec 2014 01:03:59 -0000 > Compile warnings/errors was found on gcc 4.7.2 as follows. Variables > was reported of being used but uninitialized. Assigning an initial > value to it is needed. > > lib/librte_pmd_enic/vnic/vnic_dev.c: In function vnic_dev_get_mac_addr: > lib/librte_pmd_enic/vnic/vnic_dev.c:393:16: error: a1 may be used uninitialized in this function [-Werror=uninitialized] > lib/librte_pmd_enic/vnic/vnic_dev.c:629:10: note: a1 was declared here > lib/librte_pmd_enic/vnic/vnic_dev.c: In function vnic_dev_set_mac_addr: > lib/librte_pmd_enic/vnic/vnic_dev.c:393:16: error: a1 may be used uninitialized in this function [-Werror=uninitialized] > lib/librte_pmd_enic/vnic/vnic_dev.c:980:10: note: a1 was declared here > > Signed-off-by: Helin Zhang Acked-by: Thomas Monjalon Applied Thanks -- Thomas