Merge pull request #716 from bfredl/fallthrough

avoid warnings for implicit fallthrough in switch statements
This commit is contained in:
Max Brunsfeld 2020-08-26 10:02:00 -07:00 committed by GitHub
commit 87df53a99b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -292,6 +292,7 @@ static bool ts_parser__better_version_exists(
return true;
case ErrorComparisonPreferRight:
if (ts_stack_can_merge(self->stack, i, version)) return true;
break;
default:
break;
}
@ -975,6 +976,7 @@ static bool ts_parser__do_all_potential_reductions(
.dynamic_precedence = action.params.reduce.dynamic_precedence,
.production_id = action.params.reduce.production_id,
});
break;
default:
break;
}