Re: gcc 12.1.0 warning
Nazir Bilal Yavuz <byavuz81@gmail.com>
From: Nazir Bilal Yavuz <byavuz81@gmail.com>
To: Andres Freund <andres@anarazel.de>
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-05-10T09:13:21Z
Lists: pgsql-hackers
Attachments
- v1-0001-Fix-Warray-bounds-warning-in-guc_var_compare-func.patch (text/x-patch) patch v1-0001
Hi, 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. -- Regards, Nazir Bilal Yavuz Microsoft
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