summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/perl.h b/perl.h
index d9dcbba26f..2fbd39f6f8 100644
--- a/perl.h
+++ b/perl.h
@@ -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