From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170]) by dpdk.org (Postfix) with ESMTP id 95FAEB661 for ; Thu, 19 Feb 2015 21:49:11 +0100 (CET) Received: by mail-wi0-f170.google.com with SMTP id hi2so2746418wib.1 for ; Thu, 19 Feb 2015 12:49:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=bBGzayyYyUC25i1Qmtv3GYNWDCEJHZQc8crL2cMPxdA=; b=EIUaoqOXlBwo22YR5rzUr4N5j3ZUO3TozCvym1b+sDuIQb1+Xzs4a+i5pyldX4Z+ZH dazORKftiWfvyhWI1fMr8+n0UKwUQRo/tnni5n57SNoUB0TR4HV3yjFgVuHfPXSyJ4iQ 1n07aDp+hYsh03gQYY270k12TpBct/BPGj53NEYPM54fFV7Ji6I+8Ok1oQy7am1A8iGT 1BnKIND/wMRkI+9MLeLd+E1EqKUpAVSa7ZyVAdIeSW8qEO2l1y5LeIAVTxk25nPNxwhM Ek+UkQKm7NuUxrL1ZJ4xe2ghzG+A23VC2+EpGVGgY5V2OOexRHU88MG/hBTt7shn++tX zLQQ== X-Received: by 10.194.179.166 with SMTP id dh6mr12735332wjc.87.1424378951518; Thu, 19 Feb 2015 12:49:11 -0800 (PST) Received: from spuiu-vm.anuesystems.local ([109.100.41.154]) by mx.google.com with ESMTPSA id vh8sm38981827wjc.12.2015.02.19.12.49.10 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 19 Feb 2015 12:49:10 -0800 (PST) From: Stefan Puiu To: dev@dpdk.org Date: Thu, 19 Feb 2015 22:59:29 +0200 Message-Id: <1424379569-15851-2-git-send-email-stefan.puiu@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1424379569-15851-1-git-send-email-stefan.puiu@gmail.com> References: <1424379569-15851-1-git-send-email-stefan.puiu@gmail.com> Cc: Stefan Puiu Subject: [dpdk-dev] [PATCH] Fix compilation error when compiling with clang-3.4 in C++11 mode: in C++11 concatenated string literals need to have a space in between. 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, 19 Feb 2015 20:49:11 -0000 From: Stefan Puiu Sample error message: dpdk/include/rte_pci.h:96:26: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] --- lib/librte_eal/common/include/rte_pci.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_eal/common/include/rte_pci.h b/lib/librte_eal/common/include/rte_pci.h index 66ed793..12ae5a7 100644 --- a/lib/librte_eal/common/include/rte_pci.h +++ b/lib/librte_eal/common/include/rte_pci.h @@ -93,10 +93,10 @@ extern struct pci_device_list pci_device_list; /**< Global list of PCI devices. #define SYSFS_PCI_DEVICES "/sys/bus/pci/devices" /** Formatting string for PCI device identifier: Ex: 0000:00:01.0 */ -#define PCI_PRI_FMT "%.4"PRIx16":%.2"PRIx8":%.2"PRIx8".%"PRIx8 +#define PCI_PRI_FMT "%.4" PRIx16 ":%.2" PRIx8 ":%.2" PRIx8 ".%" PRIx8 /** Short formatting string, without domain, for PCI device: Ex: 00:01.0 */ -#define PCI_SHORT_PRI_FMT "%.2"PRIx8":%.2"PRIx8".%"PRIx8 +#define PCI_SHORT_PRI_FMT "%.2" PRIx8 ":%.2" PRIx8 ".%" PRIx8 /** Nb. of values in PCI device identifier format string. */ #define PCI_FMT_NVAL 4 -- 1.7.9.5