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-12-29T21:40:13Z
Lists: pgsql-hackers
Hi, On 2022-12-29 13:51:37 -0500, Tom Lane wrote: > We might find that some GCC-impostor compilers have trouble with it, > but if so we can adjust the #ifdef here. Yea. I suspect it's widely enough used that any compiler claiming to be gcc compatible has it, but ... > Getting nitpicky, I suggest calling it "HAVE_PRAGMA_GCC_SYSTEM_HEADER" > to align better with what you actually have to write. Makes sense. > + * Newer versions the perl headers trigger a lot of warnings with our compiler > > "Newer versions of ..." please. Otherwise LGTM. Oops. > > Should we backpatch this? Given the volume of warnings it's probably a good > > idea. But I'd let it step in HEAD for a few days of buildfarm coverage first. > > +1 to both points. Pushed to HEAD. 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