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 1oqNcN-0005Ut-SZ for pgsql-hackers@arkaria.postgresql.org; Wed, 02 Nov 2022 23:57:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oqNcL-0000eR-Rv for pgsql-hackers@arkaria.postgresql.org; Wed, 02 Nov 2022 23:57:57 +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 1oqNcL-0000eH-Ij for pgsql-hackers@lists.postgresql.org; Wed, 02 Nov 2022 23:57:57 +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 1oqNcF-0008PM-2C for pgsql-hackers@postgresql.org; Wed, 02 Nov 2022 23:57:56 +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 2A2NvjqN1881936; Wed, 2 Nov 2022 19:57:45 -0400 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: <20221102234346.zcupk5mqysavci4t@awork3.anarazel.de> References: <20221101180158.l4zg6ljah5ow2vvo@awork3.anarazel.de> <20221102234346.zcupk5mqysavci4t@awork3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Wed, 02 Nov 2022 16:43:46 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1881934.1667433465.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 02 Nov 2022 19:57:45 -0400 Message-ID: <1881935.1667433465@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-11-01 17:00:27 -0400, Peter Eisentraut wrote: >> Python has the same issues. There are a few other Python-embedding pro= jects >> that use -Wdeclaration-after-statement and complain if the Python heade= rs >> violate it. But it's getting tedious. -isystem would be a better solu= tion. > Which dependencies should we convert to -isystem? Color me confused about what's being discussed here. I see nothing in the gcc manual suggesting that -isystem has any effect on warning levels? regards, tom lane