summaryrefslogtreecommitdiff
path: root/XSUB.h
diff options
context:
space:
mode:
authorAndy Lester <andy@petdance.com>2005-04-22 12:39:47 -0500
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-04-26 21:03:43 +0000
commit88d019551b04ba7828be67e8c0f62de7f769b5d5 (patch)
tree64b8bb3ef095bb63c97562cec480a2c7687a5bbd /XSUB.h
parentf7fe979eb2503f8f9651a18eedcb85278b593375 (diff)
downloadperl-88d019551b04ba7828be67e8c0f62de7f769b5d5.tar.gz
XS() __attribute__
Message-ID: <20050422223947.GA4681@petdance.com> p4raw-id: //depot/perl@24333
Diffstat (limited to 'XSUB.h')
-rw-r--r--XSUB.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/XSUB.h b/XSUB.h
index b611581d59..358a4b7095 100644
--- a/XSUB.h
+++ b/XSUB.h
@@ -88,7 +88,11 @@ is a lexical $_ in scope.
# define XS(name) EXPORT_C void name(pTHX_ CV* cv)
#endif
#ifndef XS
-# define XS(name) void name(pTHX_ CV* cv)
+# if defined(HASATTRIBUTE)
+# define XS(name) void name(pTHX_ CV* cv __attribute__((unused)))
+# else
+# define XS(name) void name(pTHX_ CV* cv)
+# endif
#endif
#define dAX I32 ax = MARK - PL_stack_base + 1