Suppress -Wimplicit-fallthrough warning in new LIMIT WITH TIES code.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 11 Apr 2020 19:02:38 +0000 (15:02 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 11 Apr 2020 19:02:44 +0000 (15:02 -0400)
commit35cb574aa84723f4661e9fc51340130e64cb5dfc
tree8c85bfb7942d6c6355e45f28bd90b807788f67f1
parent328c70997bc3518a50bd9a8ff33de349a7223413
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
src/backend/executor/nodeLimit.c