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 1opyOy-0002n1-5T for pgsql-hackers@arkaria.postgresql.org; Tue, 01 Nov 2022 21:02:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1opyNx-0001CC-KX for pgsql-hackers@arkaria.postgresql.org; Tue, 01 Nov 2022 21:01:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1opyNx-0001C2-Af for pgsql-hackers@lists.postgresql.org; Tue, 01 Nov 2022 21:01:25 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1opyNr-0000mQ-1G for pgsql-hackers@postgresql.org; Tue, 01 Nov 2022 21:01:24 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 2CD1632001C6; Tue, 1 Nov 2022 17:01:15 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Tue, 01 Nov 2022 17:01:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1667336474; x=1667422874; bh=Q fsKl8byN4eDDeh+ThhPTz3k7i4umgqNz/cEZK/1E44=; b=i1sxWIM/iff4l10HR Rz3OCWIdRZolEIShE7qe+nlhLHIu/ECGrRwFeUZC4lsokoLLDTosrGYCWFsfaFMC IgfxfqZXnq2sFC0myK65fN2DehdWVeZ/m98ku0qqbUUyJ/r6izEI+UhdxziyX60j Fv72tHwJAciXdAOrdv+GjTpXKnnptEhtcOEk6NG2tn/z/YYX7fJJPJc8kLFMhSKY hMOJAeWAaEvBWWRPuGL1jTwDAppvTvYX0OuXdEioNmQHFy4V9bPRnRh2VQblRs1V YpnIjesuqoL5GJRJstRt4Whdb6MBBcQHjJ0/SW2WcojCHn5i63Bu7YNLcnYAi7Te BRz8g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrudehgddugeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvfhfhjggtgfesthejredttdefjeenucfhrhhomheprfgvthgv rhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsegvnhhtvg hrphhrihhsvggusgdrtghomheqnecuggftrfgrthhtvghrnhepfeejgeehteeuhfevvedu leeufedtjeetiefftedvudfhtdeifefgueettdevgefgnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgruhht segvnhhtvghrphhrihhsvggusgdrtghomh X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 1 Nov 2022 17:01:07 -0400 (EDT) Message-ID: Date: Tue, 1 Nov 2022 17:00:27 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: perl 5.36, C99, -Wdeclaration-after-statement -Wshadow=compatible-local Content-Language: en-US To: Andres Freund , pgsql-hackers@postgresql.org, Tom Lane , David Rowley , =?UTF-8?Q?Dagfinn_Ilmari_Manns=c3=a5ker?= References: <20221101180158.l4zg6ljah5ow2vvo@awork3.anarazel.de> From: Peter Eisentraut In-Reply-To: <20221101180158.l4zg6ljah5ow2vvo@awork3.anarazel.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 01.11.22 19:01, Andres Freund wrote: > I don't know how much longer we can rely on headers being > -Wdeclaration-after-statement clean, my impression is that people don't have a > lot of patience for C89isms anymore. > I wonder if we should try to use -isystem for a bunch of external > dependencies. That way we can keep the more aggressive warnings with a lower > likelihood of conflicting with stuff outside of our control. Python has the same issues. There are a few other Python-embedding projects that use -Wdeclaration-after-statement and complain if the Python headers violate it. But it's getting tedious. -isystem would be a better solution.