Use fallthrough comments to suppress -Wimplicit-fallthrough comments.

pull/1500/head
Hadi Moshayedi 2017-07-19 11:10:49 -04:00
parent 3a3213c4e5
commit 13edec2bbe
2 changed files with 2 additions and 5 deletions

View File

@ -164,9 +164,8 @@ RelayEventExtendNames(Node *parseTree, char *schemaName, uint64 shardId)
* performed on CreateStmt should be done here too, we simply *fall * performed on CreateStmt should be done here too, we simply *fall
* through* to avoid code repetition. * through* to avoid code repetition.
*/ */
__attribute__((fallthrough));
} }
/* fallthrough */
case T_CreateStmt: case T_CreateStmt:
{ {
CreateStmt *createStmt = (CreateStmt *) parseTree; CreateStmt *createStmt = (CreateStmt *) parseTree;

View File

@ -4448,10 +4448,8 @@ isSimpleNode(Node *node, Node *parentNode, int prettyFlags)
return false; return false;
} }
/* else do the same stuff as for T_SubLink et al. */ /* else do the same stuff as for T_SubLink et al. */
/* FALL THROUGH */
__attribute__((fallthrough));
} }
/* fallthrough */
case T_SubLink: case T_SubLink:
case T_NullTest: case T_NullTest:
case T_BooleanTest: case T_BooleanTest: