File whois-remove-malloc-attribute.patch of Package whois

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
openSUSE Build Service is sponsored by