pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: pgsql-committers <pgsql-committers@lists.postgresql.org>
Subject: Re: pgsql: Remove dependency on HeapTuple from predicate locking functions.
Date: Tue, 28 Jan 2020 14:39:48 -0500
Message-ID: <27300.1580240388@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+hUKGKRb6pCS-qZgvUQPa1Z8o3FZqO3vHpTkUKJRFxSTo9H3w@mail.gmail.com>
References: <E1iwF1n-0000bS-3A@gemulon.postgresql.org>
	<16942.1580191174@sss.pgh.pa.us>
	<CA+hUKG++GRiv1ELbt8DW4Tw117SiV1EXE_Yc2j8d6JW8xmTDzw@mail.gmail.com>
	<7230.1580223936@sss.pgh.pa.us>
	<CA+hUKGKRb6pCS-qZgvUQPa1Z8o3FZqO3vHpTkUKJRFxSTo9H3w@mail.gmail.com>

Thomas Munro <thomas.munro@gmail.com> writes:
> On Wed, Jan 29, 2020 at 4:05 AM Tom Lane <tgl@sss.pgh.pa.us> 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





view thread (6+ messages)

Message-ID: <27300.1580240388@sss.pgh.pa.us>
Permalink:  ../27300.1580240388@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/27300.1580240388@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, thomas.munro@gmail.com
  Subject: Re: pgsql: Remove dependency on HeapTuple from predicate locking functions.
  In-Reply-To: <27300.1580240388@sss.pgh.pa.us>
  References: <E1iwF1n-0000bS-3A@gemulon.postgresql.org> <16942.1580191174@sss.pgh.pa.us> <CA+hUKG++GRiv1ELbt8DW4Tw117SiV1EXE_Yc2j8d6JW8xmTDzw@mail.gmail.com> <7230.1580223936@sss.pgh.pa.us> <CA+hUKGKRb6pCS-qZgvUQPa1Z8o3FZqO3vHpTkUKJRFxSTo9H3w@mail.gmail.com> <27300.1580240388@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox