Re: plenty code is confused about function level static

From: "Andrey M(dot) Borodin" <x4mmm(at)yandex-team(dot)ru>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: plenty code is confused about function level static
Date: 2024-04-18 08:43:50
Message-ID: 4AF34E5E-480D-4F0A-82FF-7DC286F2C4ED@yandex-team.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On 18 Apr 2024, at 02:39, Andres Freund <andres(at)anarazel(dot)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.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2024-04-18 08:46:57 Re: Cannot find a working 64-bit integer type on Illumos
Previous Message Peter Eisentraut 2024-04-18 08:33:30 Re: plenty code is confused about function level static