pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Suppress -Wimplicit-fallthrough warning in new LIMIT WITH TIES c
Date: Sat, 11 Apr 2020 19:03:00 +0000
Message-ID: <E1jNLPA-00013g-W3@gemulon.postgresql.org> (raw)

Suppress -Wimplicit-fallthrough warning in new LIMIT WITH TIES code.

The placement of the fall-through comment in this code appears not to
work to suppress the warning in recent gcc.  Move it to the bottom of
the case group, and add an assertion that we didn't get there through
some other code path.  Also improve wording of nearby comments.

Julien Rouhaud, comment hacking by me

Discussion: https://postgr.es/m/CAOBaU_aLdPGU5wCpaowNLF-Q8328iR7mj1yJAhMOVsdLwY+sdg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/35cb574aa84723f4661e9fc51340130e64cb5dfc

Modified Files
--------------
src/backend/executor/nodeLimit.c | 33 +++++++++++++++++++--------------
1 file changed, 19 insertions(+), 14 deletions(-)



view thread (2+ messages)

Message-ID: <E1jNLPA-00013g-W3@gemulon.postgresql.org>
Permalink:  ../E1jNLPA-00013g-W3@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jNLPA-00013g-W3@gemulon.postgresql.org

 · 

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
  Subject: Re: pgsql: Suppress -Wimplicit-fallthrough warning in new LIMIT WITH TIES c
  In-Reply-To: <E1jNLPA-00013g-W3@gemulon.postgresql.org>
  References: <E1jNLPA-00013g-W3@gemulon.postgresql.org>

* 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