Message-ID: <
20050616143521.GB22188@petdance.com>
p4raw-id: //depot/perl@24873
=cut
*/
+#ifndef LINT_UNUSED_ARG
+# ifdef lint
+# include <note.h>
+# define LINT_UNUSED_ARG(x) NOTE(ARGUNUSED(x))
+# else
+# define LINT_UNUSED_ARG(x)
+# endif
+#endif
+
#define ST(off) PL_stack_base[ax + (off)]
#undef XS
#define dITEMS I32 items = SP - MARK
-#define dXSARGS \
+#define dXSARGS \
+ LINT_UNUSED_ARG(cv) \
dSP; dAXMARK; dITEMS
#define dXSTARG SV * const targ = ((PL_op->op_private & OPpENTERSUB_HASTARG) \
#endif /* PERL_IMPLICIT_SYS && !PERL_CORE */
#endif /* _INC_PERL_XSUB_H */ /* include guard */
+
+/*
+ * Local variables:
+ * c-indentation-style: bsd
+ * c-basic-offset: 4
+ * indent-tabs-mode: t
+ * End:
+ *
+ * ex: set ts=8 sts=4 sw=4 noet:
+ */
*/
#define PERL_UNUSED_VAR(var) ((void)var)
+#ifndef LINT_UNUSED_ARG
+# ifdef lint
+# include <note.h>
+# define LINT_UNUSED_ARG(x) NOTE(ARGUNUSED(x))
+# else
+# define LINT_UNUSED_ARG(x)
+# endif
+#endif
+
#define NOOP (void)0
#define dNOOP extern int Perl___notused PERL_UNUSED_DECL
XS(XS_Regexp_DESTROY)
{
+ LINT_UNUSED_ARG(cv)
}
XS(XS_PerlIO_get_layers)
/* Using dXSARGS would also have dITEM and dSP,
* which define 2 unused local variables. */
dAXMARK;
- (void)mark;
+ LINT_UNUSED_ARG(cv)
+ PERL_UNUSED_VAR(mark);
XSRETURN_UV(PERL_HASH_SEED);
}
/* Using dXSARGS would also have dITEM and dSP,
* which define 2 unused local variables. */
dAXMARK;
- (void)mark;
+ LINT_UNUSED_ARG(cv)
+ PERL_UNUSED_VAR(mark);
XSRETURN_UV(PL_rehash_seed);
}