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
Encode produces copious warnings during build under gcc #19588
Labels
build-time-warnings
Replaces [META] Build-time warnings RT #133556
Comments
demerphq
added
the
build-time-warnings
Replaces [META] Build-time warnings RT #133556
label
Apr 6, 2022
The fix is not merged yet, reopening until it is. |
Note that this was first reported in #17014 three years ago. I look forward to this correction. |
On Wed, 6 Apr 2022 at 13:51, James E Keenan ***@***.***> wrote:
Module: Encode aka cpan/Encode
*Description* During build Encode in core produces copious warnings due
to -Wc++-compat
byte_t.c:10394:24: warning: duplicate declaration of ‘utf8_viscii’ is invalid in C++ [-Wc++-compat]
10394 | static const encpage_t utf8_viscii[12] = {
| ^~~~~~~~~~~
byte_t.c:322:24: note: previous declaration of ‘utf8_viscii’ was here
322 | static const encpage_t utf8_viscii[];
| ^~~~~~~~~~~
Note that this was first reported in #17014
<#17014> three years ago. I look
forward to this correction.
Me too. And some. It's up to Dan Kogai now. :-)
Yves
--
perl -Mre=debug -e "/just|another|perl|hacker/"
|
Merged
Fixed with the merge of Encode 3.17. |
scottchiefbaker
pushed a commit
to scottchiefbaker/perl5
that referenced
this issue
Nov 3, 2022
This silences the build warnings reported in Perl#19588 and in Perl#17014. It includes some test updates, but no functionality changes.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Module:
Encode aka cpan/Encode
Description
During build Encode in core produces copious warnings due to -Wc++-compat
These warnings are bogus as the code generator produces code which is tailored for C++ or C, and the C code that is being warned about simply isn't used in a C++ build.
Note this is a placeholder issue to record this for Perl, an issues exists for the upstream repo for this module:
dankogai/p5-encode#144
Steps to Reproduce
make
Expected behavior
No warnings.
Perl configuration
The text was updated successfully, but these errors were encountered: