Re: perl 5.36, C99, -Wdeclaration-after-statement -Wshadow=compatible-local
Andres Freund <andres@anarazel.de>
From: Andres Freund <andres@anarazel.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Peter Eisentraut <peter.eisentraut@enterprisedb.com>, pgsql-hackers@postgresql.org, David Rowley <dgrowleyml@gmail.com>, Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Date: 2022-11-03T00:03:34Z
Lists: pgsql-hackers
Hi,
On 2022-11-02 19:57:45 -0400, Tom Lane wrote:
> Andres Freund <andres@anarazel.de> writes:
> > On 2022-11-01 17:00:27 -0400, Peter Eisentraut wrote:
> >> Python has the same issues. There are a few other Python-embedding projects
> >> that use -Wdeclaration-after-statement and complain if the Python headers
> >> violate it. But it's getting tedious. -isystem would be a better solution.
>
> > Which dependencies should we convert to -isystem?
>
> Color me confused about what's being discussed here. I see nothing
> in the gcc manual suggesting that -isystem has any effect on warning
> levels?
It's only indirectly explained :(
The -isystem and -idirafter options also mark the directory as a system directory, so that it gets the same special treatment that is applied to
the standard system directories.
and then https://gcc.gnu.org/onlinedocs/cpp/System-Headers.html
Greetings,
Andres Freund
Commits
-
perl: Hide warnings inside perl.h when using gcc compatible compiler
- 99f8bc335cbe 11.19 landed
- f0e13802f196 12.14 landed
- ce073d01445c 13.10 landed
- 7b5dec760f7d 14.7 landed
- c6e75e4c2703 15.2 landed
- 388e80132c00 16.0 landed