This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Avoid unused-parameter warning when compiling with g++.
[perl5.git] / XSUB.h
diff --git a/XSUB.h b/XSUB.h
index e74abae..ec7b58d 100644 (file)
--- a/XSUB.h
+++ b/XSUB.h
@@ -119,7 +119,7 @@ is a lexical C<$_> in scope.
  * "STATIC", ie. it exports XSUB symbols. You probably don't want that.
  */
 
-#define XSPROTO(name) void name(pTHX_ CV* cv)
+#define XSPROTO(name) void name(pTHX_ CV* cv __attribute__unused__)
 
 #undef XS
 #undef XS_EXTERNAL