From: Michael G. Schwern Date: Thu, 24 May 2001 15:40:28 +0000 (+0100) Subject: Re: Making perl with -Wall X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=afb903826904a8d9e7b3f9c7e5ab8695633ce552;p=p5sagit%2Fp5-mst-13.2.git Re: Making perl with -Wall Message-ID: <20010524154028.B1988@blackrider.blackstar.co.uk> p4raw-id: //depot/perl@10197 --- diff --git a/malloc.c b/malloc.c index fe0b66d..0345ef9 100644 --- a/malloc.c +++ b/malloc.c @@ -304,7 +304,11 @@ # ifndef pTHX # define pTHX void # define pTHX_ -# define dTHX extern int Perl___notused +# ifdef HASATTRIBUTE +# define dTHX extern int Perl___notused __attribute__ ((unused)) +# else +# define dTHX extern int Perl___notused +# endif # define WITH_THX(s) s # endif # ifndef PERL_GET_INTERP diff --git a/perl.h b/perl.h index f14f897..6ef79c2 100644 --- a/perl.h +++ b/perl.h @@ -226,7 +226,11 @@ struct perl_thread; #endif #define NOOP (void)0 +#ifdef HASATTRIBUTE +#define dNOOP extern int Perl___notused __attribute__ ((unused)) +#else #define dNOOP extern int Perl___notused +#endif #ifndef pTHX # define pTHX void