summaryrefslogtreecommitdiff
path: root/include/sysconf.h.cmake
diff options
context:
space:
mode:
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