Re: turn fastgetattr and heap_getattr to inline functions
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Pg Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2022-03-24T12:09:26Z
Lists: pgsql-hackers
On Thu, Mar 24, 2022 at 11:21:07AM +0100, Alvaro Herrera wrote: > This patch should silence some recent Coverity (false positive) > complaints about assertions contained in these macros. The logic looks fine. Good idea to get rid of DISABLE_COMPLEX_MACRO. > Portability testing at: > https://cirrus-ci.com/github/alvherre/postgres/macros-to-inlinefuncs > > Intend to push later today, unless something ugly happens. Hmm. I think that you'd better add a return at the end of each function? Some compilers are dumb in detecting that all the code paths return (aka recent d0083c1) and could generate warnings, even if things are coded to return all the time, like in your patch. -- Michael
Commits
-
Change fastgetattr and heap_getattr to inline functions
- e27f4ee0a701 15.0 landed