From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] ena: icc fix compilation warning #3656 Date: Wed, 06 Apr 2016 15:48:36 +0200 Message-ID: <2531178.1K5dVvhytR@xps13> References: <1459945046-7595-1-git-send-email-ferruh.yigit@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Jan Medala , Jakub Palider , Netanel Belgazal , Evgeny Schemeilin To: Ferruh Yigit Return-path: Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by dpdk.org (Postfix) with ESMTP id 79E871F5 for ; Wed, 6 Apr 2016 15:50:15 +0200 (CEST) Received: by mail-wm0-f49.google.com with SMTP id 191so58966393wmq.0 for ; Wed, 06 Apr 2016 06:50:15 -0700 (PDT) In-Reply-To: <1459945046-7595-1-git-send-email-ferruh.yigit@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-04-06 13:17, Ferruh Yigit: > With (ICC) 16.0.2 20160204, getting following warnings: > > .../drivers/net/ena/base/ena_com.c(492): error #3656: variable > "flags" may be used before its value is set > ENA_SPINLOCK_LOCK(admin_queue->q_lock, flags); > > .../drivers/net/ena/base/ena_com.c(1971): error #3656: variable > "mem_handle" may be used before its value is set > ENA_MEM_ALLOC_COHERENT(ena_dev->dmadev, len, > > For both warnings the variable value is ignored, so there is no defect. > To comfort compiler warning, a initial value provided to variables. > > Signed-off-by: Ferruh Yigit Applied, thanks