pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: Robert Haas <rhaas@postgresql.org>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Move interrupt-handling code into subroutines.
Date: Tue, 17 Dec 2019 18:43:39 +0000
Message-ID: <8736diaj98.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <E1ihH8X-0005rL-4F@gemulon.postgresql.org>
References: <E1ihH8X-0005rL-4F@gemulon.postgresql.org>

>>>>> "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)





view thread (3+ messages)  latest in thread

Message-ID: <8736diaj98.fsf@news-spur.riddles.org.uk>
Permalink:  ../8736diaj98.fsf@news-spur.riddles.org.uk/
Also on:    postgresql.org/message-id/8736diaj98.fsf@news-spur.riddles.org.uk

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andrew@tao11.riddles.org.uk, rhaas@postgresql.org
  Subject: Re: pgsql: Move interrupt-handling code into subroutines.
  In-Reply-To: <8736diaj98.fsf@news-spur.riddles.org.uk>
  References: <E1ihH8X-0005rL-4F@gemulon.postgresql.org> <8736diaj98.fsf@news-spur.riddles.org.uk>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox