From 04eacc44efc2d529fe48ed0b16d1b1c182376627 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Linse?= Date: Wed, 26 Aug 2020 10:04:08 +0200 Subject: [PATCH] avoid warnings for implicit fallthrough in switch statements --- lib/src/parser.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/src/parser.c b/lib/src/parser.c index 37d1a1c2..79cad797 100644 --- a/lib/src/parser.c +++ b/lib/src/parser.c @@ -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; }