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

Re: weird gcc utf8.c compiler warning

Thread Previous
From:
Tomasz Konojacki
Date:
March 29, 2021 17:13
Subject:
Re: weird gcc utf8.c compiler warning
Message ID:
20210329191256.5D22.5C4F47F8@xenu.pl
On Mon, 29 Mar 2021 16:45:44 +0100
Dave Mitchell <davem@iabyn.com> 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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About