diff options
author | Max Kellermann <max@duempel.org> | 2011-09-13 21:33:34 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2011-09-13 21:38:27 +0200 |
commit | a6c797ee4b8e83c031961b22e449f083e79fe7af (patch) | |
tree | 6c0a8e00890d4c9ccf74d2463304f363e8fbc46c /src/gcc.h | |
parent | 3e40b2249f2ad4894ad6f4acda987c212fd56355 (diff) | |
download | mpd-a6c797ee4b8e83c031961b22e449f083e79fe7af.tar.gz mpd-a6c797ee4b8e83c031961b22e449f083e79fe7af.tar.xz mpd-a6c797ee4b8e83c031961b22e449f083e79fe7af.zip |
gcc.h: add macro gcc_nonnull
Diffstat (limited to '')
-rw-r--r-- | src/gcc.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 */ |