vppinfra: clang doesn't know about attribute noclone
Type: fix
Fixes: 88019c40
Change-Id: I219597c95883f49b6ff51e65e6c6c80e3c1518b7
Signed-off-by: Damjan Marion <dmarion@me.com>
This commit is contained in:

committed by
Florin Coras

parent
fd1f56a770
commit
3c9dee27ca
@@ -100,7 +100,11 @@
|
||||
#define __clib_packed __attribute__ ((packed))
|
||||
#define __clib_constructor __attribute__ ((constructor))
|
||||
#define __clib_noinline __attribute__ ((noinline))
|
||||
#ifdef __clang__
|
||||
#define __clib_noclone
|
||||
#else
|
||||
#define __clib_noclone __attribute__ ((noclone))
|
||||
#endif
|
||||
#define __clib_aligned(x) __attribute__ ((aligned(x)))
|
||||
#define __clib_section(s) __attribute__ ((section(s)))
|
||||
#define __clib_warn_unused_result __attribute__ ((warn_unused_result))
|
||||
|
Reference in New Issue
Block a user