summaryrefslogtreecommitdiffstats
path: root/src/vppinfra/clib.h
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2020-04-08 00:52:53 +0200
committerFlorin Coras <florin.coras@gmail.com>2020-05-21 17:33:37 +0000
commita2185120d542040c2f46beec190db9a6c6e11588 (patch)
tree0e20737f2a31229b208cef8c3979308d287bef36 /src/vppinfra/clib.h
parent1e96617d952e2d5d8cc367a226702f8f825ed039 (diff)
vlib: enforce buffer alloc return value check
Type: improvement Change-Id: I33cd702f9c4d995520509fdb16e3b8f8fd50e535 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vppinfra/clib.h')
-rw-r--r--src/vppinfra/clib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vppinfra/clib.h b/src/vppinfra/clib.h
index 398f1aebb04..6961d100a75 100644
--- a/src/vppinfra/clib.h
+++ b/src/vppinfra/clib.h
@@ -98,6 +98,7 @@
#define __clib_noinline __attribute__ ((noinline))
#define __clib_aligned(x) __attribute__ ((aligned(x)))
#define __clib_section(s) __attribute__ ((section(s)))
+#define __clib_warn_unused_result __attribute__ ((warn_unused_result))
#define never_inline __attribute__ ((__noinline__))