diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-03-05 06:37:58 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-03-05 06:37:58 +0000 |
commit | b21babef0dc893282c08080aa99c4bd760e05204 (patch) | |
tree | 178338abe8edf44382f306b3ad7afd6a6f7e3ae6 /perl.h | |
parent | 6fe27eff86ccee6edf9c3b80ac6390b75f5dd18e (diff) | |
download | perl-b21babef0dc893282c08080aa99c4bd760e05204.tar.gz |
shup up warnings about dNOOP from gcc with __attribute__ ((unused))
(from Doug MacEachern <dougm@pobox.com>)
p4raw-id: //depot/perl@5539
Diffstat (limited to 'perl.h')
-rw-r--r-- | perl.h | 19 |
1 files changed, 9 insertions, 10 deletions
@@ -151,6 +151,14 @@ functions are now member functions of the PERL_OBJECT. */ +#ifndef NEXT30_NO_ATTRIBUTE +# ifndef HASATTRIBUTE /* disable GNU-cc attribute checking? */ +# ifdef __attribute__ /* Avoid possible redefinition errors */ +# undef __attribute__ +# endif +# define __attribute__(attr) +# endif +#endif class CPerlObj; @@ -221,7 +229,7 @@ struct perl_thread; #endif #define NOOP (void)0 -#define dNOOP extern int Perl___notused +#define dNOOP extern int __attribute__ ((unused)) Perl___notused #ifndef pTHX # define pTHX void @@ -2664,15 +2672,6 @@ typedef void *Thread; # define PERL_CALLCONV #endif -#ifndef NEXT30_NO_ATTRIBUTE -# ifndef HASATTRIBUTE /* disable GNU-cc attribute checking? */ -# ifdef __attribute__ /* Avoid possible redefinition errors */ -# undef __attribute__ -# endif -# define __attribute__(attr) -# endif -#endif - #ifdef PERL_OBJECT # define PERL_DECL_PROT #endif |