avoid warnings for implicit fallthrough in switch statements

This commit is contained in:
Björn Linse 2020-08-26 10:04:08 +02:00
parent 55030afd13
commit 04eacc44ef

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;
}