pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mark Dilger <mark.dilger@enterprisedb.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Julien Rouhaud <rjuju123@gmail.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@lists.postgresql.org>
Subject: Re: Add "-Wimplicit-fallthrough" to default flags (was Re: pgsql: Support FETCH FIRST WITH TIES)
Date: Sun, 12 Apr 2020 08:25:21 -0700
Message-ID: <C719E70C-6066-4E8C-8659-A01D758DC88E@enterprisedb.com> (raw)
In-Reply-To: <15010.1586703320@sss.pgh.pa.us>
References: <E1jLun1-0000uu-U9@gemulon.postgresql.org>
	<CAOBaU_aLdPGU5wCpaowNLF-Q8328iR7mj1yJAhMOVsdLwY+sdg@mail.gmail.com>
	<25206.1586630854@sss.pgh.pa.us>
	<20200412081825.qyo5vwwco3fv4gdo@nol>
	<15010.1586703320@sss.pgh.pa.us>



> On Apr 12, 2020, at 7:55 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> 
> Poking around in the archives, it seems like the only previous formal
> proposal to add -Wimplicit-fallthrough was in the context of a much
> more aggressive proposal to make a lot of non-Wall warnings into
> errors [1], which people did not like.

That was from me.

> The only more-restrictive alternative, short of disabling
> the comments altogether, is
> 
>           * -Wimplicit-fallthrough=4 case sensitively matches one of the
>               following regular expressions:
> 
>               *<"-fallthrough">
>               *<"@fallthrough@">
>               *<"lint -fallthrough[ \t]*">
>               *<"[ \t]*FALLTHR(OUGH|U)[ \t]*">
> 
> Thoughts?

Naturally, I'm +1 for this.

—
Mark Dilger
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company








view thread (30+ messages)  latest in thread

Message-ID: <C719E70C-6066-4E8C-8659-A01D758DC88E@enterprisedb.com>
Permalink:  ../C719E70C-6066-4E8C-8659-A01D758DC88E@enterprisedb.com/
Also on:    postgresql.org/message-id/C719E70C-6066-4E8C-8659-A01D758DC88E@enterprisedb.com

 · 

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: mark.dilger@enterprisedb.com, tgl@sss.pgh.pa.us, rjuju123@gmail.com, pgsql-hackers@lists.postgresql.org
  Subject: Re: Add "-Wimplicit-fallthrough" to default flags (was Re: pgsql: Support FETCH FIRST WITH TIES)
  In-Reply-To: <C719E70C-6066-4E8C-8659-A01D758DC88E@enterprisedb.com>
  References: <E1jLun1-0000uu-U9@gemulon.postgresql.org> <CAOBaU_aLdPGU5wCpaowNLF-Q8328iR7mj1yJAhMOVsdLwY+sdg@mail.gmail.com> <25206.1586630854@sss.pgh.pa.us> <20200412081825.qyo5vwwco3fv4gdo@nol> <15010.1586703320@sss.pgh.pa.us> <C719E70C-6066-4E8C-8659-A01D758DC88E@enterprisedb.com>

* 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