]>
Commit | Line | Data |
---|---|---|
d842d690 JB |
1 | Extended malloc attributes are available since gcc 11. |
2 | --- whois/utils.h.orig 2023-10-08 22:58:33.000000000 +0200 | |
3 | +++ whois/utils.h 2023-10-21 17:56:23.225691505 +0200 | |
4 | @@ -17,7 +17,11 @@ | |
5 | /* Portability macros */ | |
6 | #ifdef __GNUC__ | |
7 | # define NORETURN __attribute__((noreturn)) | |
8 | +# if __GNUC__ >= 11 | |
9 | # define MALLOC_FREE __attribute__((malloc(free))) | |
10 | +# else | |
11 | +# define MALLOC_FREE | |
12 | +# endif | |
13 | # define NONNULL __attribute__((returns_nonnull)) | |
14 | #else | |
15 | # define NORETURN |