Re: undefined-behavior obstack.c:139

Paul Eggert <[email protected]> Sun, 3 Dec 2023 01:04:59 -0800
Newsgroups gmane.comp.gnu.m4.bugs,gmane.comp.lib.gnulib.bugs
Organization UCLA Computer Science Department
Message-ID <[email protected]>
On 2023-12-02 01:04, Bruno Haible wrote:
> On the contrary, I will try to find and eliminate such alarms.

Please don't complicate and/or slow down shared Gnulib code just to 
pacify this particular false alarm from Clang. The obstack fix was fine, 
because it made obstack clearer and no slower. But we shouldn't have to 
insert unnecessary "is the size zero?" checks merely to pacify the false 
alarms.

The right place to fix this problem is in Clang, not in Gnulib.