From e39a7b8347b1055cca6e9cfadcfeca23f8236eb9 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Tue, 26 Apr 2016 14:54:57 +0200 Subject: 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 --- vpp/vnet/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vpp') 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) \ -- cgit 1.2.3-korg