]> git.pld-linux.org Git - packages/whois.git/blob - whois-gcc.patch
728db2e636fc7f0dca654d269c0e3b01f9a6e92d
[packages/whois.git] / whois-gcc.patch
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
This page took 0.056496 seconds and 2 git commands to generate.