-
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
Build-time warnings: 'Wparentheses' generated by g++-8 #16708
Comments
From @jkeenanIf we use g++-8 to build blead, we get a variety of warnings including 3 ##### This can be seen, for example, in this smoke-test report: These 3 warnings can be silence easily. I created the ##### This can also be seen in this smoke-test report (which I believe was run Please review the patch attached: Thank you very much. |
From @jkeenan0001-Eliminated-3-Wparentheses-warnings-detected-by-g-8.patchFrom e47ef4b92143ac276e7b5f44e751e98b4927b2a3 Mon Sep 17 00:00:00 2001
From: James E Keenan <[email protected]>
Date: Wed, 26 Sep 2018 12:43:04 -0400
Subject: [PATCH] Eliminated 3 '-Wparentheses' warnings detected by g++-8.
---
mathoms.c | 4 ++--
perlio.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/mathoms.c b/mathoms.c
index 375e3e330f..8b003d3538 100644
--- a/mathoms.c
+++ b/mathoms.c
@@ -518,7 +518,7 @@ int
Perl_fprintf_nocontext(PerlIO *stream, const char *format, ...)
{
int ret = 0;
- va_list(arglist);
+ va_list arglist;
/* Easier to special case this here than in embed.pl. (Look at what it
generates for proto.h) */
@@ -536,7 +536,7 @@ int
Perl_printf_nocontext(const char *format, ...)
{
dTHX;
- va_list(arglist);
+ va_list arglist;
int ret = 0;
#ifdef PERL_IMPLICIT_CONTEXT
diff --git a/perlio.c b/perlio.c
index 3a2f9120d3..ba934ff259 100644
--- a/perlio.c
+++ b/perlio.c
@@ -5243,7 +5243,7 @@ PerlIO_getpos(PerlIO *f, SV *pos)
void
Perl_noperl_die(const char* pat, ...)
{
- va_list(arglist);
+ va_list arglist;
PERL_ARGS_ASSERT_NOPERL_DIE;
va_start(arglist, pat);
vfprintf(stderr, pat, arglist);
--
2.17.1
|
From @jkeenanSummary of my perl5 (revision 5 version 29 subversion 4) configuration: Characteristics of this binary (from libperl): |
From @jkeenanOn Wed, 03 Oct 2018 19:20:40 GMT, jkeenan@pobox.com wrote:
The patch also clears up 3 'Wparentheses' warnings generated by using g++8 as C-compiler on FreeBSD-11.1. Data available upon request. Thank you very much. |
From [Unknown Contact. See original ticket]On Wed, 03 Oct 2018 19:20:40 GMT, jkeenan@pobox.com wrote:
The patch also clears up 3 'Wparentheses' warnings generated by using g++8 as C-compiler on FreeBSD-11.1. Data available upon request. Thank you very much. |
From @jkeenanOn Wed, 03 Oct 2018 19:20:40 GMT, jkeenan@pobox.com wrote:
I'll apply this patch tomorrow unless I hear otherwise. Thank you very much. -- |
The RT System itself - Status changed from 'new' to 'open' |
From @jkeenanOn Tue, 09 Oct 2018 21:12:12 GMT, jkeenan wrote:
Applied to blead in commit fc917ff. -- |
From @jkeenanNo evidence of problems from smoke tests. Closing. |
@jkeenan - Status changed from 'open' to 'pending release' |
From @khwilliamsonThank you for filing this report. You have helped make Perl better. With the release today of Perl 5.30.0, this and 160 other issues have been Perl 5.30.0 may be downloaded via: If you find that the problem persists, feel free to reopen this ticket. |
@khwilliamson - Status changed from 'pending release' to 'resolved' |
Migrated from rt.perl.org#133557 (status was 'resolved')
Searchable as RT133557$
The text was updated successfully, but these errors were encountered: