summaryrefslogtreecommitdiff
path: root/include/sysconf.h.cmake
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-06-07 22:10:42 +0100
committerSadie Powell <sadie@witchery.services>2024-06-07 22:15:58 +0100
commit78617124374c99d6c83460393a8b4b76ce354007 (patch)
tree8544ed7938f73ae96c1e2db0349fdc9bea7360f5 /include/sysconf.h.cmake
parent4468fe77fa363ff82e408cd4b97667c559639733 (diff)
Add nullability attributes to the module events.
Diffstat (limited to 'include/sysconf.h.cmake')
-rw-r--r--include/sysconf.h.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sysconf.h.cmake b/include/sysconf.h.cmake
index 2b981c7af..e22e4ad5d 100644
--- a/include/sysconf.h.cmake
+++ b/include/sysconf.h.cmake
@@ -51,6 +51,8 @@
#if defined __GNUC__
# define ATTR_FORMAT(STRINGPOS, FIRSTPOS) __attribute__((format(printf, STRINGPOS, FIRSTPOS)))
+# define ATTR_NOT_NULL(...) __attribute__((nonnull(__VA_ARGS__)))
#else
# define ATTR_FORMAT(STRINGPOS, FIRSTPOS)
+# define ATTR_NOT_NULL(...)
#endif