aboutsummaryrefslogtreecommitdiffstats
path: root/vpp
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2016-04-26 14:54:57 +0200
committerDave Barach <openvpp@barachs.net>2016-04-26 16:16:44 +0000
commite39a7b8347b1055cca6e9cfadcfeca23f8236eb9 (patch)
tree0113d89f6faaf4013266f46c5e520735063b63f5 /vpp
parent1dabaafcebb02699cae1ebd2b58e34dfe6b0f064 (diff)
Fix compile errors reported by clang
For using clang as a compiler it is enough to specify CC=clang in the make command line Change-Id: I06f1c1d418b68768f8119de5bdc8748c51f90c02 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'vpp')
-rw-r--r--vpp/vnet/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vpp/vnet/main.c b/vpp/vnet/main.c
index 4659440f..2e08aa53 100644
--- a/vpp/vnet/main.c
+++ b/vpp/vnet/main.c
@@ -67,7 +67,7 @@ int main (int argc, char * argv[])
u32 size;
void vlib_set_get_handoff_structure_cb (void *cb);
-#if __x86_64__
+#if __x86_64__ && !defined(__clang__)
__builtin_cpu_init ();
const char * msg = "ERROR: This binary requires CPU with %s extensions.\n";
#define _(a,b) \