Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iwWiH-0001qK-BT for pgsql-committers@arkaria.postgresql.org; Tue, 28 Jan 2020 19:39:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iwWiF-0001s2-W4 for pgsql-committers@arkaria.postgresql.org; Tue, 28 Jan 2020 19:39:51 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iwWiF-0001rv-Kv for pgsql-committers@lists.postgresql.org; Tue, 28 Jan 2020 19:39:51 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iwWiD-0003h3-DY for pgsql-committers@lists.postgresql.org; Tue, 28 Jan 2020 19:39:50 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 00SJdmPw027301; Tue, 28 Jan 2020 14:39:48 -0500 From: Tom Lane To: Thomas Munro cc: pgsql-committers Subject: Re: pgsql: Remove dependency on HeapTuple from predicate locking functions. In-reply-to: References: <16942.1580191174@sss.pgh.pa.us> <7230.1580223936@sss.pgh.pa.us> Comments: In-reply-to Thomas Munro message dated "Wed, 29 Jan 2020 08:18:30 +1300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <27299.1580240388.1@sss.pgh.pa.us> Date: Tue, 28 Jan 2020 14:39:48 -0500 Message-ID: <27300.1580240388@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Thomas Munro writes: > On Wed, Jan 29, 2020 at 4:05 AM Tom Lane wrote: >> There is absolutely no question that the original coding is illegal >> per spec, and it isn't even a particularly useful shorthand; so why >> can't we get even a warning about it? > $ cc -c -Wpedantic test.c > test.c:2:12: warning: void function 'g' should not return void > expression [-Wpedantic] > void g() { return f(); } > ^ ~~~ > 1 warning generated. > Many other constructs in PostgreSQL are rejected by that switch, > though, and I don't see a way to ask for just that one warning. Yeah, -Wpedantic is a little *too* pedantic I'm afraid. Oh well. regards, tom lane