SHA256
1
0
forked from pool/whois
whois/whois-remove-malloc-attribute.patch

14 lines
378 B
Diff

Index: whois/utils.h
===================================================================
--- whois.orig/utils.h
+++ whois/utils.h
@@ -24,7 +24,7 @@
# define NONNULL
# define UNUSED
#endif
-#if defined __GNUC__ && !defined __clang__
+#if defined __GNUC__ && __GNUC__ >= 13 && !defined __clang__
# define MALLOC_FREE __attribute__((malloc(free)))
#else
# define MALLOC_FREE