Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ihHov-0005t7-Cd for pgsql-committers@arkaria.postgresql.org; Tue, 17 Dec 2019 18:43:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ihHot-0001fL-OI for pgsql-committers@arkaria.postgresql.org; Tue, 17 Dec 2019 18:43:43 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ihHot-0001fC-Gb for pgsql-committers@lists.postgresql.org; Tue, 17 Dec 2019 18:43:43 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ihHor-0004kH-7S; Tue, 17 Dec 2019 18:43:43 +0000 Received: from [192.168.127.1] (port=20803 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtp (Exim 4.92.3 (FreeBSD)) (envelope-from ) id 1ihHop-0009ot-Hg; Tue, 17 Dec 2019 18:43:39 +0000 Received: from localhost ([127.0.0.1]:57964 helo=caithnard.riddles.org.uk) by caithnard.riddles.org.uk with esmtp (Exim 4.92.3 (FreeBSD)) (envelope-from ) id 1ihHop-000ChU-DG; Tue, 17 Dec 2019 18:43:39 +0000 From: Andrew Gierth To: Robert Haas Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Move interrupt-handling code into subroutines. In-Reply-To: (Robert Haas's message of "Tue, 17 Dec 2019 17:59:57 +0000") Message-ID: <8736diaj98.fsf@news-spur.riddles.org.uk> References: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (berkeley-unix) Date: Tue, 17 Dec 2019 18:43:39 +0000 MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >>>>> "Robert" == Robert Haas 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)