From: Rafael Garcia-Suarez Date: Mon, 3 Apr 2006 08:22:15 +0000 (+0000) Subject: Take splint into account for PERL_UNUSED_ARG (patch by Jarkko) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c99ffe5e27f50044d8e283a2c6c45b050a7bcce0;p=p5sagit%2Fp5-mst-13.2.git Take splint into account for PERL_UNUSED_ARG (patch by Jarkko) p4raw-id: //depot/perl@27696 --- diff --git a/XSUB.h b/XSUB.h index a137c42..9832b7d 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 # 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 diff --git a/perl.h b/perl.h index 661af3e..301f24a 100644 --- a/perl.h +++ b/perl.h @@ -224,8 +224,7 @@ * but we cannot quite get rid of, such as "ax" in PPCODE+noargs xsubs */ #ifndef PERL_UNUSED_ARG -/* Which lint? Which ? Need more more robust cpp test. */ -# ifdef lint +# if defined(lint) && defined(S_SPLINT_S) /* www.splint.org */ # include # define PERL_UNUSED_ARG(x) NOTE(ARGUNUSED(x)) # else