]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Non-null function argument declaration
authorMaria Matejka <mq@jmq.cz>
Mon, 27 Apr 2020 20:33:10 +0000 (22:33 +0200)
committerMaria Matejka <mq@ucw.cz>
Fri, 1 May 2020 13:18:48 +0000 (15:18 +0200)
lib/birdlib.h

index 4adc42cdbd0b6c797c0f3b4c2f2ae0abd2cab6ba..caa26b9421b9b6819161aee366d68a79fc76a652 100644 (file)
@@ -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