Re: perl 5.36, C99, -Wdeclaration-after-statement -Wshadow=compatible-local

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
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-02T23:57:45Z
Lists: pgsql-hackers
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?

			regards, tom lane



Commits

  1. perl: Hide warnings inside perl.h when using gcc compatible compiler