-
Notifications
You must be signed in to change notification settings - Fork 560
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"unused parameter" warning when building with g++ #15979
Comments
From @jkeenanObserved today running 'make' on perl 5 blead when compiling with: g++ --version $ grep -nC2 'warning:' g++.en_US.utf8.typescript The patch attached silences the warning. Please review (for 5.27.0). Thank you very much. |
From @jkeenan0001-Avoid-unused-parameter-warning-when-compiling-with-g.patchFrom b7911fe4c1f885c2c72d97ed9cc223418934f374 Mon Sep 17 00:00:00 2001
From: James E Keenan <jkeenan@cpan.org>
Date: Sun, 14 May 2017 09:57:21 -0400
Subject: [PATCH] Avoid unused-parameter warning when compiling with g++.
---
XSUB.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/XSUB.h b/XSUB.h
index e74abae..ec7b58d 100644
--- 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
--
2.7.4
|
From @jkeenanSummary of my perl5 (revision 5 version 26 subversion 0) configuration: Characteristics of this binary (from libperl): |
From @jkeenanOn Sun, 14 May 2017 19:24:51 GMT, jkeenan@pobox.com wrote:
Available for smoking in the smoke-me/jkeenan/gplusplus-warning branch. -- |
From [Unknown Contact. See original ticket]On Sun, 14 May 2017 19:24:51 GMT, jkeenan@pobox.com wrote:
Available for smoking in the smoke-me/jkeenan/gplusplus-warning branch. -- |
From @jkeenanOn Sun, 14 May 2017 19:24:51 GMT, jkeenan@pobox.com wrote:
Patch applied to blead in commit 53dfb2b. Will monitor for 7 days, then close unless problems appear. Thank you very much. -- |
The RT System itself - Status changed from 'new' to 'open' |
From @jkeenanOn Thu, 01 Jun 2017 13:51:52 GMT, jkeenan wrote:
Let's explore one smoke-test failure. [tux], recently you submitted our very first ever smoke test reports using GCC version 7. I'm glad that as part of that effort you tested building perl with g++ version 7.1.1, as reported here: http://perl5.test-smoke.org/report/56002 The g++-7.1.1 build failed in all cases where you did not include these config_args: -Duse64bitall -Duselongdouble ##### Have you had a chance to look at these test failures? I ask because I need to rule out the possibility that the changes in 53dfb2b were the source of the problem. Thank you very much. -- |
From @TuxOn Wed, 07 Jun 2017 14:57:18 -0700, "James E Keenan via RT"
I think they are related to Jarkko's ongoing work on fpclassify and perl-git/t $ ./perl -I ../lib harness -v op/sprintf2.t |& grep -v '^ok ' Test Summary Report op/sprintf2.t (Wstat: 0 Tests: 1674 Failed: 6)
-- |
From @jkeenanOn Thu, 08 Jun 2017 10:55:43 GMT, hmbrand wrote:
Sounds reasonable. Thanks for your rapid response. Marking ticket Resolved. -- |
@jkeenan - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#131314 (status was 'resolved')
Searchable as RT131314$
The text was updated successfully, but these errors were encountered: