develooper Front page | perl.perl5.porters | Postings from March 2021

Re: weird gcc utf8.c compiler warning

Thread Previous
Tomasz Konojacki
March 29, 2021 17:13
Re: weird gcc utf8.c compiler warning
Message ID:
On Mon, 29 Mar 2021 16:45:44 +0100
Dave Mitchell <> wrote:

> While looking into a gcc compiler warning when building utf8.o,
> I've reduced the offending code to the following standalone file.
> I'm struggling to see why the warning makes any sense.

That code doesn't warn with gcc 9, so it's probably a regression
introduced in gcc 10. Also, it doesn't warn in C++ mode. I can't find
anything related in their bugtracker, so I think you should report it.

> I'm also slightly
> confused that the compiler doesn't even need -Wall or -W[something] to
> emit the warning.

Some warnings are enabled by default.

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About