From 8161153450000b2b806ca000eae18af7e430d3d9 Mon Sep 17 00:00:00 2001 From: Jarkko Hietaniemi Date: Wed, 18 Jun 2014 18:56:45 -0400 Subject: Silence -Wunused-parameter my_perl under threads. For S_ functions, remove the context. For Perl_ functions, add PERL_UNUSED_CONTEXT. Tricky because sometimes depends on DEBUGGING, and sometimes on whether we are have PERL_IMPLICIT_SYS. (Why all the mathoms Perl_is_uni_... and Perl_is_utf8_... functions are not being whined about is a mystery.) vutil.c (included via util.c) has one of these, but it's cpan/, and a known problem: https://rt.cpan.org/Ticket/Display.html?id=96100 --- deb.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'deb.c') diff --git a/deb.c b/deb.c index d16103eb1e..433ae11ddb 100644 --- a/deb.c +++ b/deb.c @@ -94,6 +94,8 @@ Perl_debstackptrs(pTHX) PTR2UV(PL_mainstack), PTR2UV(AvARRAY(PL_curstack)), PTR2UV(PL_mainstack), PTR2UV(AvFILLp(PL_curstack)), PTR2UV(AvMAX(PL_curstack))); +#else + PERL_UNUSED_CONTEXT; #endif /* DEBUGGING */ return 0; } -- cgit v1.2.1