]> git.pld-linux.org Git - packages/whois.git/blame - whois-gcc.patch
- updated to 5.5.19
[packages/whois.git] / whois-gcc.patch
CommitLineData
d842d690
JB
1Extended 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
This page took 0.072893 seconds and 4 git commands to generate.