Re: plenty code is confused about function level static - Mailing list pgsql-hackers

From Andrey M. Borodin
Subject Re: plenty code is confused about function level static
Date
Msg-id 4AF34E5E-480D-4F0A-82FF-7DC286F2C4ED@yandex-team.ru
Whole thread Raw
In response to plenty code is confused about function level static  (Andres Freund <andres@anarazel.de>)
Responses Re: plenty code is confused about function level static
List pgsql-hackers

> On 18 Apr 2024, at 02:39, Andres Freund <andres@anarazel.de> wrote:
>
> There are lots of places that could benefit from adding 'static
> const'.

+1 for helping compiler.
GCC has a -Wsuggest-attribute=const, we can count these warnings and threat increase as an error :)


Best regards, Andrey Borodin.


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: plenty code is confused about function level static
Next
From: Peter Eisentraut
Date:
Subject: Re: Cannot find a working 64-bit integer type on Illumos