Suppress warnings about a clash between redefined malloc and the
Andy Lester [Fri, 24 Jun 2005 12:11:59 +0000 (07:11 -0500)]
use of __attribute__malloc__

Subject: Re: Fun with __attribute__malloc__
Message-ID: <20050624171159.GB29590@petdance.com>

p4raw-id: //depot/perl@24987

perl.h

diff --git a/perl.h b/perl.h
index 4c09cd6..1335096 100644 (file)
--- a/perl.h
+++ b/perl.h
@@ -2641,7 +2641,7 @@ typedef pthread_key_t     perl_key;
 #  define __attribute__format__(x,y,z)      __attribute__((format(x,y,z)))
 #endif
 #ifdef HASATTRIBUTE_MALLOC
-#  define __attribute__malloc__             __attribute__((malloc))
+#  define __attribute__malloc__             __attribute__((__malloc__))
 #endif
 #ifdef HASATTRIBUTE_NONNULL
 #  define __attribute__nonnull__(a)         __attribute__((nonnull(a)))