summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael G. Schwern <schwern@pobox.com>2001-05-24 16:40:28 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2001-05-24 14:19:44 +0000
commitafb903826904a8d9e7b3f9c7e5ab8695633ce552 (patch)
tree4b2bca988b3c5de9c862d62b48713d202ab53af4
parent151e6568b976f25c334d8e44f3b0ab7e305d7beb (diff)
downloadperl-afb903826904a8d9e7b3f9c7e5ab8695633ce552.tar.gz
Re: Making perl with -Wall
Message-ID: <20010524154028.B1988@blackrider.blackstar.co.uk> p4raw-id: //depot/perl@10197
-rw-r--r--malloc.c6
-rw-r--r--perl.h4
2 files changed, 9 insertions, 1 deletions
diff --git a/malloc.c b/malloc.c
index fe0b66dd70..0345ef97d0 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 f14f897bdf..6ef79c2c86 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