diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-06-13 13:44:58 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-06-13 13:44:58 +0000 |
commit | 7c56ff90abbb6aa6e09de3286e89e85bf7838bb2 (patch) | |
tree | 72ca1ed0aa8db3f30e8208169d54fcedce02130e /perl.h | |
parent | e3708dc50c962258164f034990b0d3bae5e35f14 (diff) | |
download | perl-7c56ff90abbb6aa6e09de3286e89e85bf7838bb2.tar.gz |
Hide __attribute__((unused)) behind PERL_UNUSED_DECL as
suggested by NI-S.
p4raw-id: //depot/perl@10561
Diffstat (limited to 'perl.h')
-rw-r--r-- | perl.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -225,8 +225,14 @@ struct perl_thread; # define CALLPROTECT CALL_FPTR(PL_protect) #endif +#ifdef HASATTRIBUTE +# define PERL_UNUSED_DECL __attribute__((unused)) +#else +# define PERL_UNUSED_DECL +#endif + #define NOOP (void)0 -#define dNOOP extern int Perl___notused __attribute__ ((unused)) +#define dNOOP extern int Perl___notused PERL_UNUSED_DECL #ifndef pTHX # define pTHX void |