Add comment about intentional fallthrough in switch.
authorTom Lane
Mon, 11 Apr 2016 03:52:34 +0000 (23:52 -0400)
committerTom Lane
Mon, 11 Apr 2016 03:52:34 +0000 (23:52 -0400)
Coverity complained about an apparent missing "break" in a switch
added by bb140506df605fab.  The human-readable comments are pretty
clear that this is intentional, but add a standard /* FALL THRU */
comment to make it clear to tools too.

src/backend/utils/adt/tsginidx.c

index fc0686ee66b894d65c75ab6bebdd99b3ec0b778f..3f1e7f961f692f037e1f9974dc09bf0e4579bd9a 100644 (file)
@@ -240,6 +240,7 @@ TS_execute_ternary(GinChkVal *gcv, QueryItem *curitem)
             * treat OP_PHRASE as OP_AND with recheck requirement
             */
            *gcv->need_recheck = true;
+           /* FALL THRU */
 
        case OP_AND:
            val1 = TS_execute_ternary(gcv, curitem + curitem->qoperator.left);