From bf9486bf20ee16af71e338ee690fc36805d98fe5 Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Mon, 27 Apr 2020 22:33:10 +0200 Subject: Non-null function argument declaration --- lib/birdlib.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/birdlib.h b/lib/birdlib.h index 4adc42cd..caa26b94 100644 --- a/lib/birdlib.h +++ b/lib/birdlib.h @@ -72,6 +72,7 @@ static inline int u64_cmp(u64 i1, u64 i2) #define NORET __attribute__((noreturn)) #define UNUSED __attribute__((unused)) #define PACKED __attribute__((packed)) +#define NONNULL(...) __attribute__((nonnull((__VA_ARGS__)))) #ifndef HAVE_THREAD_LOCAL #define _Thread_local -- cgit v1.2.3