summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorAndy Lester <andy@petdance.com>2005-06-16 04:35:21 -0500
committerH.Merijn Brand <h.m.brand@xs4all.nl>2005-06-16 14:33:10 +0000
commitad73156c09397f3cfc63484d3edc50554da0fe15 (patch)
tree85a9d8eb0e7f140e97e273de3f18f8a276c0d6ad /perl.h
parent22022115c87349fc0f6f693201aed817cccd321a (diff)
downloadperl-ad73156c09397f3cfc63484d3edc50554da0fe15.tar.gz
Lint support
Message-ID: <20050616143521.GB22188@petdance.com> p4raw-id: //depot/perl@24873
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index 5eff7de71f..c85543dd50 100644
--- a/perl.h
+++ b/perl.h
@@ -212,6 +212,15 @@
*/
#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