diff options
author | Daniel Mack <github@zonque.org> | 2016-03-17 16:41:20 +0100 |
---|---|---|
committer | Daniel Mack <github@zonque.org> | 2016-03-17 16:41:20 +0100 |
commit | c31be17f6bfb0a7c6f8ecb892f125016b7986f5c (patch) | |
tree | 53d954c5dbf22e5011ce712fe07f469ffeea4737 /src/basic/macro.h | |
parent | ce1d15ed0f944b864ac1ea0025297daede7b45f4 (diff) | |
parent | c337642992892219479704460a8d7042d66ce1e7 (diff) |
Merge pull request #2848 from keszybz/clang-warnings
Clang warnings
Diffstat (limited to 'src/basic/macro.h')
-rw-r--r-- | src/basic/macro.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/basic/macro.h b/src/basic/macro.h index b36a95675a..e41aa4260f 100644 --- a/src/basic/macro.h +++ b/src/basic/macro.h @@ -27,7 +27,11 @@ #include <sys/types.h> #define _printf_(a,b) __attribute__ ((format (printf, a, b))) -#define _alloc_(...) __attribute__ ((alloc_size(__VA_ARGS__))) +#ifdef __clang__ +# define _alloc_(...) +#else +# define _alloc_(...) __attribute__ ((alloc_size(__VA_ARGS__))) +#endif #define _sentinel_ __attribute__ ((sentinel)) #define _unused_ __attribute__ ((unused)) #define _destructor_ __attribute__ ((destructor)) |