aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-09-13 21:33:34 +0200
committerMax Kellermann <max@duempel.org>2011-09-13 21:38:27 +0200
commita6c797ee4b8e83c031961b22e449f083e79fe7af (patch)
tree6c0a8e00890d4c9ccf74d2463304f363e8fbc46c
parent3e40b2249f2ad4894ad6f4acda987c212fd56355 (diff)
downloadmpd-a6c797ee4b8e83c031961b22e449f083e79fe7af.tar.gz
mpd-a6c797ee4b8e83c031961b22e449f083e79fe7af.tar.xz
mpd-a6c797ee4b8e83c031961b22e449f083e79fe7af.zip
gcc.h: add macro gcc_nonnull
Diffstat (limited to '')
-rw-r--r--src/gcc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gcc.h b/src/gcc.h
index b02e8e76a..8a5f98201 100644
--- a/src/gcc.h
+++ b/src/gcc.h
@@ -38,6 +38,8 @@
# define gcc_used __attribute__ ((used))
/* # define inline inline __attribute__ ((always_inline)) */
# define gcc_noinline __attribute__ ((noinline))
+# define gcc_nonnull(...) __attribute__((nonnull(__VA_ARGS__)))
+# define gcc_nonnull_all __attribute__((nonnull))
#else
# define gcc_must_check
# define gcc_packed
@@ -49,6 +51,8 @@
# define gcc_used
/* # define inline */
# define gcc_noinline
+# define gcc_nonnull(...)
+# define gcc_nonnull_all
#endif
#endif /* MPD_GCC_H */