You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Recent gcc can warn about switch-case fall throughs that are notexplicitly labeled as intentional. This seems like a good thing,so clean up the warnings exposed thereby by labeling all suchcases with comments that gcc will recognize.In files that already had one or more suitable comments, I generallymatched the existing style of those. Otherwise I went with/* FALLTHROUGH */, which is one of the spellings approved at themore-restrictive-than-default level -Wimplicit-fallthrough=4.(At the default level you can also spell it /* FALL ?THRU */,and it's not picky about case. What you can't do is includeadditional text in the same comment, so some existing commentscontaining versions of this aren't good enough.)Testing with gcc 8.0.1 (Fedora 28's current version), I found thatI also had to put explicit "break"s after elog(ERROR) or ereport(ERROR);apparently, for this purpose gcc doesn't recognize that those don'treturn. That seems like possibly a gcc bug, but it's fine becausein most places we did that anyway; so this amounts to a visit from thestyle police.Discussion:https://postgr.es/m/15083.1525207729@sss.pgh.pa.us