Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fq4Jz-0001i9-9e for pgsql-hackers@arkaria.postgresql.org; Wed, 15 Aug 2018 22:31:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fq4Jx-0005rh-Nf for pgsql-hackers@arkaria.postgresql.org; Wed, 15 Aug 2018 22:31:17 +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_SHA384:256) (Exim 4.89) (envelope-from ) id 1fq4Jx-0005rZ-Gr for pgsql-hackers@lists.postgresql.org; Wed, 15 Aug 2018 22:31:17 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fq4Ju-0005sp-Q7 for pgsql-hackers@lists.postgresql.org; Wed, 15 Aug 2018 22:31:17 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w7FMVAaI010676; Wed, 15 Aug 2018 18:31:10 -0400 From: Tom Lane To: Andres Freund cc: David Steele , pgsql-hackers@lists.postgresql.org Subject: Re: C99 compliance for src/port/snprintf.c In-reply-to: <20180815222401.kxsupl5zie2jgi4x@alap3.anarazel.de> References: <9456.1534347706@sss.pgh.pa.us> <20180815155237.pz5fgfmdo4cgqjta@alap3.anarazel.de> <11138.1534349838@sss.pgh.pa.us> <20825.1534360737@sss.pgh.pa.us> <2069.1534363063@sss.pgh.pa.us> <20180815214931.vlwsz4s55enbppna@alap3.anarazel.de> <9877.1534371239@sss.pgh.pa.us> <20180815222401.kxsupl5zie2jgi4x@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Wed, 15 Aug 2018 15:24:01 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <10674.1534372270.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Wed, 15 Aug 2018 18:31:10 -0400 Message-ID: <10675.1534372270@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > On 2018-08-15 18:13:59 -0400, Tom Lane wrote: >> Experimenting here says that even reasonably modern gcc's won't take >> declarations-inside-for without "--std=c99" or such. > I think autoconf's magic knows about most of that: > — Macro: AC_PROG_CC_C99 Ah, of course. What about the MSVC build? > I think we could get a start by adding that test to configure, without > relying on it for now (i.e. keeping mylodon with -Wc99-extensions > -Werror=c99-extensions alive). That'd tell us about which machines, > besides presumably gaur, we'd need to either kick to the curb or change. Sure, no objection to putting that in just to see how much of the buildfarm can handle it. If the answer turns out to be "a lot", we might have to reconsider, but gathering data seems like the first thing to do. regards, tom lane