From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f195.google.com (mail-pf0-f195.google.com [209.85.192.195]) by dpdk.org (Postfix) with ESMTP id 528F62A1A for ; Tue, 24 May 2016 16:48:22 +0200 (CEST) Received: by mail-pf0-f195.google.com with SMTP id f144so2427735pfa.2 for ; Tue, 24 May 2016 07:48:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=5YlpALCQzZOdpQG526jnBnu9XklGsATb3PXDpsvwMDM=; b=aOB5QO0Ec2ziheobu9+l2SVg5JSYQltG049+6Ea2NaoKJugGy998WbH6Lxg4gSfmKD 130Xy+ki64uolY3RAvugjCKb2v7fcCArWiaJbVsy/T46LK/wk0PnJ9VuH8qbAMWiiKqW hIgpt6MFjbwGGoB7LmFwOXfto+4zcWdEnlX+jBo2bnE6ce5kpnY0gGpD43fdQ+tr8Gqg my0V324xxx7qFVuornM7vNjYGCRh66ew9vggiron+3brGYmAr4R01sWHF9NsMyKZVaZw iPDdnU92DYYcMle6s8NGWU3QtmKShylCLOkAY93yCm9Bs6AC/o8ahJEystSLSU/z/Eog oyRw== 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; bh=5YlpALCQzZOdpQG526jnBnu9XklGsATb3PXDpsvwMDM=; b=Cgw0VovgFdbITFIY+azatUcAF8bqW33K40jnDxCJBcWgPt295aYaSTQrUkSne4p8e/ 0ViFNOKj9kTVOEedG0748/h8YDgy+CCibw14wTSMYF8yr075QDZWA1yMwWZgsPU9XUns x70BezCXEelJtXId2IyGd6RH06QZcs1Bf9mV+FGbswmzUPxRVTyJVjx8en7KEWYOXkg/ EdpqOu5SbgHpUBS8YJaPdx0+9NK/Nzao9NuAbiv+WzV+fGuD35LwLYHBfli/Im3csmKO hcuvyddwbUoVqsEy3SV0Ors4JsFdu8J1vwc8xdhYR8NFa0d6WAK7LgAaHt84bnzUfAQ4 X4dA== X-Gm-Message-State: ALyK8tLiT5ZV5SEQHsDeJJsJw5lwdvMtKP4vnLYWPc8mLFaWCq4FuhrxFt3ofaykJqT7rA== X-Received: by 10.98.20.197 with SMTP id 188mr7520870pfu.144.1464101301551; Tue, 24 May 2016 07:48:21 -0700 (PDT) Received: from localhost.localdomain (183.180.67.214.ap.gmobb-fix.jp. [183.180.67.214]) by smtp.gmail.com with ESMTPSA id g82sm5695472pfj.22.2016.05.24.07.48.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 24 May 2016 07:48:20 -0700 (PDT) From: Hiroyuki Mikita To: wenzhuo.lu@intel.com Cc: dev@dpdk.org Date: Tue, 24 May 2016 23:48:10 +0900 Message-Id: <1464101290-28547-1-git-send-email-h.mikita89@gmail.com> X-Mailer: git-send-email 1.9.1 Subject: [dpdk-dev] [PATCH] e1000: fix build with clang 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: Tue, 24 May 2016 14:48:22 -0000 GCC_VERSION is empty in case of clang: /bin/sh: line 0: test: -ge: unary operator expected It is the same issue as http://dpdk.org/dev/patchwork/patch/5994/ Fixes: 366113dbfb69 ("e1000: suppress misleading indentation warning") Signed-off-by: Hiroyuki Mikita --- drivers/net/e1000/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/e1000/Makefile b/drivers/net/e1000/Makefile index f4879e6..d580dea 100644 --- a/drivers/net/e1000/Makefile +++ b/drivers/net/e1000/Makefile @@ -50,11 +50,11 @@ ifeq ($(CC), icc) CFLAGS_BASE_DRIVER = -wd177 -wd181 -wd188 -wd869 -wd2259 else # -# CFLAGS for gcc +# CFLAGS for gcc/clang # CFLAGS_BASE_DRIVER = -Wno-uninitialized -Wno-unused-parameter CFLAGS_BASE_DRIVER += -Wno-unused-variable -ifeq ($(shell test $(GCC_VERSION) -ge 60 && echo 1), 1) +ifeq ($(shell test $(CC) = gcc && test $(GCC_VERSION) -ge 60 && echo 1), 1) CFLAGS_BASE_DRIVER += -Wno-misleading-indentation endif endif -- 1.9.1