Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pAgQd-00073L-Bc for pgsql-hackers@arkaria.postgresql.org; Thu, 29 Dec 2022 00:05:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pAgQc-00049P-0v for pgsql-hackers@arkaria.postgresql.org; Thu, 29 Dec 2022 00:05:46 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pAgQb-00049G-OS for pgsql-hackers@lists.postgresql.org; Thu, 29 Dec 2022 00:05:45 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pAgQZ-0004Ol-Ex for pgsql-hackers@postgresql.org; Thu, 29 Dec 2022 00:05:44 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 2BT05Zo4438140; Wed, 28 Dec 2022 19:05:35 -0500 From: Tom Lane To: Andres Freund cc: Peter Eisentraut , pgsql-hackers@postgresql.org, David Rowley , Dagfinn Ilmari =?utf-8?Q?Manns=C3=A5ker?= Subject: Re: perl 5.36, C99, -Wdeclaration-after-statement -Wshadow=compatible-local In-reply-to: <20221229000223.2pdwxexfrgoximul@awork3.anarazel.de> References: <20221101180158.l4zg6ljah5ow2vvo@awork3.anarazel.de> <20221102234346.zcupk5mqysavci4t@awork3.anarazel.de> <1881935.1667433465@sss.pgh.pa.us> <20221103000334.sbh5jqw37i3y7pc3@awork3.anarazel.de> <20221228182455.hfdwd22zztvkojy2@awork3.anarazel.de> <356473.1672253007@sss.pgh.pa.us> <20221229000223.2pdwxexfrgoximul@awork3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Wed, 28 Dec 2022 16:02:23 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <438138.1672272335.1@sss.pgh.pa.us> Date: Wed, 28 Dec 2022 19:05:35 -0500 Message-ID: <438139.1672272335@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andres Freund writes: > On 2022-12-28 13:43:27 -0500, Tom Lane wrote: >> Hmm ... I guess the buildfarm would tell us whether that detection works >> correctly on platforms where it matters. Let's keep it simple if we >> can. > Quick clarification question: Are you suggesting to use #ifdef __GNUC__, or > that it suffices to use -Werror=unknown-pragmas without a separate configure > check? I'd try -Werror=unknown-pragmas, and then go to the #ifdef if that doesn't seem to work well. regards, tom lane