From 02bc9b5829b5a70c3fdee3c42d7f73bf9a7999ff Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Wed, 6 Feb 2019 10:10:18 +0100 Subject: [PATCH] lib: Silence explicit fallthrough warning in GCC --- lib/src/get_changed_ranges.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/get_changed_ranges.c b/lib/src/get_changed_ranges.c index da39dd13..e372d981 100644 --- a/lib/src/get_changed_ranges.c +++ b/lib/src/get_changed_ranges.c @@ -376,7 +376,7 @@ unsigned ts_subtree_get_changed_ranges(const Subtree *old_tree, const Subtree *n position.bytes, next_position.bytes )) { next_position = position; - // fall through + __attribute__ ((fallthrough)); } else { break; }