summaryrefslogtreecommitdiff
path: root/malloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'malloc.c')
-rw-r--r--malloc.c6
1 files changed, 5 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