From: Andy Lester Date: Fri, 24 Jun 2005 12:11:59 +0000 (-0500) Subject: Suppress warnings about a clash between redefined malloc and the X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=77785eead56f43b89f14cf6ef1c9a99846e1beff;p=p5sagit%2Fp5-mst-13.2.git Suppress warnings about a clash between redefined malloc and the use of __attribute__malloc__ Subject: Re: Fun with __attribute__malloc__ Message-ID: <20050624171159.GB29590@petdance.com> p4raw-id: //depot/perl@24987 --- diff --git a/perl.h b/perl.h index 4c09cd6..1335096 100644 --- 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)))