Re: warn_unused_results - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: warn_unused_results
Date
Msg-id b49372e0-e951-32c5-03db-78a7fcbf0f1e@2ndquadrant.com
Whole thread Raw
In response to Re: warn_unused_results  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers
On 2020-11-10 04:34, Michael Paquier wrote:
>>> I am not sure
>>> about the addition of repalloc(), as it is quite obvious that one has
>>> to use its result.  Lists are fine, these are proper to PG internals
>>> and beginners tend to be easily confused in the way to use them.
>> realloc() is listed in the GCC documentation as the reason this option
>> exists, and glibc tags its realloc() with this attribute, so doing the same
>> for repalloc() seems sensible.
> Good point.

committed

-- 
Peter Eisentraut
2ndQuadrant, an EDB company
https://www.2ndquadrant.com/



pgsql-hackers by date:

Previous
From: Andrew Gierth
Date:
Subject: Strange GiST logic leading to uninitialized memory access in pg_trgm gist code
Next
From: Heikki Linnakangas
Date:
Subject: Re: Clean up optional rules in grammar