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 1oqNhu-0005qP-E3 for pgsql-hackers@arkaria.postgresql.org; Thu, 03 Nov 2022 00:03:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oqNht-0004KW-9w for pgsql-hackers@arkaria.postgresql.org; Thu, 03 Nov 2022 00:03:41 +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 1oqNht-0004KM-0V for pgsql-hackers@lists.postgresql.org; Thu, 03 Nov 2022 00:03:41 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oqNhq-0008UB-LT for pgsql-hackers@postgresql.org; Thu, 03 Nov 2022 00:03:39 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id E39673200903; Wed, 2 Nov 2022 20:03:36 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Wed, 02 Nov 2022 20:03:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; t=1667433816; x=1667520216; bh=Y8SnGCUUjG 8iWnQRbh2NQjYLArZu5hX5FveS3znl3Bk=; b=LpC3SUIzfVQ614BzQD6QhyONyu vFuOf3tGc0qSUebDnADvBHBSfvcm9fPh8K9YDS/RGyVq0qS5gR8M/jKvtTcuYt8u g8WuJX2cibZTCAF4If+0ruQy7qsFMTmOOBBBxrmz3u3GJoTQVMw4RFtlmFDgW6p8 KWnOz3+0s95rBh3N8nbfXHvVQ691jXemoEaEyRZ/foHEYOgAHHFaqWVw7NwUuOlb aiv9tU1z8FZ/JwcALIGlXIQJKsphp2mSw60veAxZBZoPH1uUhWclAI7K1iAJf0AM zOqO15dOdPOR1HUA3YnQHnCqZFAO9YCd4/Qi/nHD4lhzEUZR5U+5TnEST9cg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc: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=1667433816; x=1667520216; bh=Y8SnGCUUjG8iWnQRbh2NQjYLArZu 5hX5FveS3znl3Bk=; b=Z17CfLe7NWtDzYa1qaK5e8psAiVs7GIKASe5Y71X7vwO SRzwy7ZUKjVIxbHqHTfbPvasFGgfDjnepG7ZFsdSPcP5FacJrf2ukql46+0v24ck yJxXckuhCKsJM35nRRbIanSVke7lKMo4F+P4Ve9s0aWjFWp5BDIhL19tPkR7czII oiluJQhu8AYUjSUMfa5OGmvZwyO8v++hcbvzC2V3JuPpoD3L/vWdVJ/EFeqg7iFa PGKBbpAkLfuqfP4SxodtTokDq7N67+xO1wxL39DQ1wE6m80oMaAZDZLpFAQ4LzJy z2hz3iTBjgcZcSwjkDfpJ1gzmUJ1vR9B9p52+2RDEA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrudekgddujecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeetnhgurhgv shcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucggtffrrg htthgvrhhnpedugefhhedvhefftdejieetueeggfdtfeejvddthfelueeikefhveevkeei feegfeenucffohhmrghinhepghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvshesrghnrghrrgiivghlrdguvg X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 2 Nov 2022 20:03:36 -0400 (EDT) Date: Wed, 2 Nov 2022 17:03:34 -0700 From: Andres Freund To: Tom Lane 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 Message-ID: <20221103000334.sbh5jqw37i3y7pc3@awork3.anarazel.de> References: <20221101180158.l4zg6ljah5ow2vvo@awork3.anarazel.de> <20221102234346.zcupk5mqysavci4t@awork3.anarazel.de> <1881935.1667433465@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1881935.1667433465@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2022-11-02 19:57:45 -0400, Tom Lane wrote: > 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 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. > > > 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? It's only indirectly explained :( The -isystem and -idirafter options also mark the directory as a system directory, so that it gets the same special treatment that is applied to the standard system directories. and then https://gcc.gnu.org/onlinedocs/cpp/System-Headers.html Greetings, Andres Freund