-
Notifications
You must be signed in to change notification settings - Fork 559
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
New compilation warnings with gcc 8.3.0 #17013
Comments
From @dur-randirCreated by @dur-randirI get the following warnings when building perl on Debian with gcc Wcast-function-type (some of them, all are about signal handlers): perl.c: In function ‘Perl_sys_init’: perl.c: In function ‘S_parse_body’: util.c: In function ‘Perl_rsignal’: pp_sys.c: In function ‘Perl_pp_system’: decompress.c: In function ‘BZ2_decompress’: Wmultistatement-macros: deflate.c: In function ‘deflateParams’: Perl Info
|
From @jkeenanOn Thu, 23 May 2019 09:13:12 GMT, randir wrote:
Thank you for this analysis. Some of these warnings are from modules that are maintained upstream on CPAN. In the case of, say, decompress.c, that's part of IO-Compress, whose maintainer has previously indicated that he modifies that code if and when the underlying C libraries get updated. So we (p5p) can't directly control that. However, if you are able to submit patches for the warnings being emitted by those files maintained by p5p (e.g., perl.c, util.c), we would be happy to consider them. Thank you very much. -- |
The RT System itself - Status changed from 'new' to 'open' |
[snip]
[snip]
For anyone who wants to take a go at clearing up some of these warnings, please see the attachment which lists all the Wcast-function-type warnings, all of which are in files under p5p maintenance. Thank you very much. |
@iabyn is working on this, see https://www.nntp.perl.org/group/perl.perl5.porters/2019/11/msg256570.html |
Thanks for letting me know this. Yes, when that is merged, it will eliminate that particular group of warnings.
|
That had been my opinion a while back, but the upstream libraries I depend on, namely zlib and bzip2, have been very quiet (zlib will soon be three years since the last release, bzip2 was effectively dead until recently). I already include patches for Bzip2, so a few more aren't a problem.
And patches for bzip2 will also be considered. Just noticed that my email reply to this issue on P5P didn't make it into the github comments. Above is a cut-n-paste from P5P. Is this a bug/feature/limitation? |
Email replies to perlbug-followup no longer go anywhere useful (I believe the mailbox is manually monitored). |
That's a shame |
Change sourced upstream from Perl/perl5#17013
[DELTA] 2.091 23 November 2019 * Silence "macro expands to multiple statements" warning Change sourced upstream from #17013 pmqs/Compress-Raw-Zlib#2 da2bd1fc765b80d01ed10a79b6c4a035e5095ed8
I've updated |
@pmqs, thanks for your attention to this. Your work has led to a dramatic reduction in the number of build-time warnings we're getting from gcc-8.
(And none of the remaining warnings are in your scope.) Thank you very much. |
2.091 23 November 2019 * Silence "macro expands to multiple statements" warning Change sourced upstream from Perl/perl5#17013 pmqs/Compress-Raw-Zlib#2 da2bd1fc765b80d01ed10a79b6c4a035e5095ed8 2.090 9 November 2019 * No Changes 2.089 3 November 2019 * No Changes 2.088 31 October 2019 * Add SUPPORT section d348ad76c2073a2973d094891fbd0c2e24bf397d * 000prereq.t: dump Perl version e1afe502818cb1ccf5bad917b14b029b408f47f1
Migrated from rt.perl.org#134129 (status was 'open')
Searchable as RT134129$
The text was updated successfully, but these errors were encountered: