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 1p4Z9q-0004fj-BT for pgsql-hackers@arkaria.postgresql.org; Mon, 12 Dec 2022 03:07:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p4Z9p-0000He-76 for pgsql-hackers@arkaria.postgresql.org; Mon, 12 Dec 2022 03:07:09 +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 1p4Z9o-0000HV-Up for pgsql-hackers@lists.postgresql.org; Mon, 12 Dec 2022 03:07:08 +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 1p4Z9m-00084D-Ly for pgsql-hackers@postgresql.org; Mon, 12 Dec 2022 03:07:07 +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 2BC375Uh1914803; Sun, 11 Dec 2022 22:07:05 -0500 From: Tom Lane To: Thomas Munro cc: pgsql-hackers Subject: Re: Tree-walker callbacks vs -Wdeprecated-non-prototype In-reply-to: References: <1725174.1651449765@sss.pgh.pa.us> <3953550.1663376882@sss.pgh.pa.us> <208054.1663534665@sss.pgh.pa.us> <334554.1663596005@sss.pgh.pa.us> <508012.1663611012@sss.pgh.pa.us> <722832.1663690513@sss.pgh.pa.us> Comments: In-reply-to Thomas Munro message dated "Mon, 12 Dec 2022 15:45:51 +1300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1914801.1670814425.1@sss.pgh.pa.us> Date: Sun, 11 Dec 2022 22:07:05 -0500 Message-ID: <1914802.1670814425@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Thomas Munro writes: > As visible on seawasp and locally (16/main branch nightly packages), > they decided to start warning about these casts with a new strict > variant of the warning. Their discussion: > https://reviews.llvm.org/D134831 > There are also a few other cases unrelated to this thread's original > problem, for example casts involving pg_funcptr_t, HashCompareFunc. I > guess our options would be to turn that warning off, or reconsider and > try shoving the cast of "generic" arguments pointers down into the > functions? I'm for "turn the warning off". Per previous discussion, adhering strictly to that rule would make our code worse (less legible AND less safe), not better. regards, tom lane