Re: Silencing upcoming warning about stack_base_ptr
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2022-02-18T00:40:39Z
Lists: pgsql-hackers
Andres Freund <andres@anarazel.de> writes: > On 2022-02-17 18:44:27 -0500, Tom Lane wrote: >> (that's visible now on buildfarm member caiman). We probably >> should take some thought for silencing this before it starts >> to be in people's faces during routine development. > We could try using __builtin_frame_address(0) when available, presumably gcc > won't warn about that... Oh, I didn't know about that. Seems like a better option since then we don't need any API changes at all. Maybe at some point some non-gcc-alike will start delivering a comparable warning, but then we could fall back to what I did here. regards, tom lane
Commits
-
Suppress warning about stack_base_ptr with late-model GCC.
- de447bb8e6fb 15.0 landed
- e0d4123bbcfe 12.11 landed
- 46b738ffc2bf 13.7 landed
- 2e30d77a1968 14.3 landed