From: Tom Lane <tgl@sss.pgh.pa.us>
To: Julien Rouhaud <rjuju123@gmail.com>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: Add "-Wimplicit-fallthrough" to default flags (was Re: pgsql: Support FETCH FIRST WITH TIES)
Date: Mon, 11 May 2020 10:40:23 -0400
Message-ID: <2519.1589208023@sss.pgh.pa.us> (raw)
In-Reply-To: <CAOBaU_btWJCLb1wg11qETg5ro833za5sDWL0vhPuNi7rQ8DtdQ@mail.gmail.com>
References: <20200511035925.GA7653@alvherre.pgsql>
<28351.1589172478@sss.pgh.pa.us>
<CAOBaU_anDvR9EQpZwiKDNCQL0kekzpNngN1X+WmQhun0mSXRUg@mail.gmail.com>
<28994.1589204480@sss.pgh.pa.us>
<CAOBaU_btWJCLb1wg11qETg5ro833za5sDWL0vhPuNi7rQ8DtdQ@mail.gmail.com>
Julien Rouhaud <rjuju123@gmail.com> writes:
> On Mon, May 11, 2020 at 3:41 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Why? It uses "fallthrough" which is a legal spelling per level 4.
> GCC documentation mentions [ \t]*FALLTHR(OUGH|U)[ \t]* for level 4
> (out of the view other alternatives), which AFAICT is case sensitive
> (level 3 has fall(s | |-)?thr(ough|u)[ \t.!]*(-[^\n\r]*)?).
Oh, I'd missed that that was case sensitive. Ugh --- that seems
unreasonable. Maybe we'd better settle for level 3 after all;
I don't think there's much room to doubt the intentions of a
comment spelled that way.
regards, tom lane
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-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, rjuju123@gmail.com, alvherre@2ndquadrant.com
Subject: Re: Add "-Wimplicit-fallthrough" to default flags (was Re: pgsql: Support FETCH FIRST WITH TIES)
In-Reply-To: <2519.1589208023@sss.pgh.pa.us>
References: <20200511035925.GA7653@alvherre.pgsql> <28351.1589172478@sss.pgh.pa.us> <CAOBaU_anDvR9EQpZwiKDNCQL0kekzpNngN1X+WmQhun0mSXRUg@mail.gmail.com> <28994.1589204480@sss.pgh.pa.us> <CAOBaU_btWJCLb1wg11qETg5ro833za5sDWL0vhPuNi7rQ8DtdQ@mail.gmail.com> <2519.1589208023@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