Re: gcc 12.1.0 warning
Andres Freund <andres@anarazel.de>
From: Andres Freund <andres@anarazel.de>
To: Nazir Bilal Yavuz <byavuz81@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Erik Rijkers <er@xs4all.nl>, pgsql-hackers@lists.postgresql.org, Thomas Munro <thomas.munro@gmail.com>
Date: 2024-07-15T16:41:55Z
Lists: pgsql-hackers
Hi, On 2024-05-10 12:13:21 +0300, Nazir Bilal Yavuz wrote: > On Tue, 23 Apr 2024 at 19:59, Andres Freund <andres@anarazel.de> wrote: > > > > > > Which seems entirely legitimate. ISTM that guc_var_compare() ought to only > > cast the pointers to the key type, i.e. char *. And incidentally that does > > prevent the warning. > > > > The reason it doesn't happen in newer versions of postgres is that we aren't > > using guc_var_compare() in the relevant places anymore... > > The fix is attached. It cleanly applies from REL_15_STABLE to > REL_12_STABLE, fixes the warnings and the tests pass. Thanks! I've applied it to all branches - while it's not required to avoid a warning in newer versions, it's still not correct as it was... Greetings, Andres
Commits
-
Fix bad indentation introduced in 43cd30bcd1c
- ff3cae4875d3 17.0 landed
- 212b0262d60e 16.4 landed
- 11441ad48d09 15.8 landed
- 3006fd8e6ece 14.13 landed
- 9d3a2b3cdfbd 13.16 landed
- 69bdee12e443 12.20 landed
- 47ecbfdfcc71 18.0 landed
-
Fix type confusion in guc_var_compare()
- ee89c4fa4b18 14.13 landed
- 92f02c39c0fa 12.20 landed
- 2cf9bda76cfd 13.16 landed
- b9f3db23b7b5 15.8 landed
- 2ad3b9350f73 16.4 landed
- 9b047cc0b2c2 17.0 landed
- 43cd30bcd1cd 18.0 landed