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

Поиск
Список
Период
Сортировка
От Andrew Gierth
Тема Re: pgsql: Move interrupt-handling code into subroutines.
Дата
Msg-id 8736diaj98.fsf@news-spur.riddles.org.uk
обсуждение исходный текст
Ответ на pgsql: Move interrupt-handling code into subroutines.  (Robert Haas <rhaas@postgresql.org>)
Ответы Re: pgsql: Move interrupt-handling code into subroutines.  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-committers
>>>>> "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);

-- 
Andrew (irc:RhodiumToad)



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: pgsql: Partially deduplicate interrupt handling for background processe
Следующее
От: Robert Haas
Дата:
Сообщение: pgsql: Add missing "void" to prototypes.