git://git.exim.org
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27e646d
)
Quieten clang build
author
Jeremy Harris
<jgh146exb@wizmail.org>
Tue, 4 Oct 2022 18:12:13 +0000
(19:12 +0100)
committer
Jeremy Harris
<jgh146exb@wizmail.org>
Tue, 4 Oct 2022 18:17:40 +0000
(19:17 +0100)
src/src/mytypes.h
patch
|
blob
|
history
diff --git
a/src/src/mytypes.h
b/src/src/mytypes.h
index 49fed0a9d53484998b1824fa37a64d1448ba880f..141d2c6137b160e78af10ab72eb22003b0b4187a 100644
(file)
--- a/
src/src/mytypes.h
+++ b/
src/src/mytypes.h
@@
-42,8
+42,12
@@
so we have to give up on all of the available parameter checking. */
# define FUNC_MAYBE_UNUSED __attribute__((__unused__))
# define WARN_UNUSED_RESULT __attribute__((__warn_unused_result__))
# define ALLOC __attribute__((malloc))
-# define ALLOC_SIZE(A) __attribute__((alloc_size(A)))
# define NORETURN __attribute__((noreturn))
+# ifndef __clang__
+# define ALLOC_SIZE(A) __attribute__((alloc_size(A)))
+# else
+# define ALLOC_SIZE(A) /**/
+# endif
#else
# define ARG_UNUSED /**/
# define FUNC_MAYBE_UNUSED /**/