Re: pgsql: Move interrupt-handling code into subroutines.

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: pgsql: Move interrupt-handling code into subroutines.
Дата
Msg-id CA+TgmobdS2Cog5UA=DP7VNmUjXNMGeAFQcxQqHNTpbLv4P=L2A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pgsql: Move interrupt-handling code into subroutines.  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
Список pgsql-committers
On Tue, Dec 17, 2019 at 1:43 PM Andrew Gierth
<andrew@tao11.riddles.org.uk> wrote:
> >>>>> "Robert" == Robert Haas <rhaas@postgresql.org> writes:
>
>  Robert> Move interrupt-handling code into subroutines.
>
> This is eliciting compiler warnings from gcc, which apparently doesn't
> count "static void foo();" as being a prototype (quite reasonably, since
> it's not).
>
> Needs this fix (in autovacuum.c and checkpointer.c):
>
> -static void AutoVacLauncherShutdown() pg_attribute_noreturn();
> +static void AutoVacLauncherShutdown(void) pg_attribute_noreturn();
>
> -static void HandleCheckpointerInterrupts();
> +static void HandleCheckpointerInterrupts(void);

Sorry about that. Fix pushed.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



В списке pgsql-committers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: pgsql: Add missing "void" to prototypes.
Следующее
От: Robert Haas
Дата:
Сообщение: pgsql: simplehash: Allow use of simplehash without MemoryContext.