summaryrefslogtreecommitdiff
path: root/XSUB.h
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-04-03 08:22:15 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-04-03 08:22:15 +0000
commitc99ffe5e27f50044d8e283a2c6c45b050a7bcce0 (patch)
treeeb82b52029a7a84ebfe8024f5e85abd27d730eed /XSUB.h
parentd8319b27ddc4c4d74cdae9e6de28ec2be390c5a1 (diff)
downloadperl-c99ffe5e27f50044d8e283a2c6c45b050a7bcce0.tar.gz
Take splint into account for PERL_UNUSED_ARG (patch by Jarkko)
p4raw-id: //depot/perl@27696
Diffstat (limited to 'XSUB.h')
-rw-r--r--XSUB.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/XSUB.h b/XSUB.h
index a137c42ab9..9832b7d5e1 100644
--- a/XSUB.h
+++ b/XSUB.h
@@ -83,7 +83,7 @@ is a lexical $_ in scope.
*/
#ifndef PERL_UNUSED_ARG
-# ifdef lint
+# if defined(lint) && defined(S_SPLINT_S) /* www.splint.org */
# include <note.h>
# define PERL_UNUSED_ARG(x) NOTE(ARGUNUSED(x))
# else
@@ -119,7 +119,7 @@ is a lexical $_ in scope.
#define dITEMS I32 items = SP - MARK
-#ifdef lint
+#if defined(lint) && defined(S_SPLINT_S) /* www.splint.org */
# define dXSARGS \
NOTE(ARGUNUSED(cv)) \
dSP; dAXMARK; dITEMS