From 548fce69f8a21525a934e2ef050dc0d394b374f4 Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Fri, 17 Jul 2020 14:24:49 +0200 Subject: [PATCH] Fix -Wswitch compiler warning Add a default label to prevent warnings for all enum values not handled in the switch statement. It's intentional in this piece of code. --- src/suunto_eonsteel_parser.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/suunto_eonsteel_parser.c b/src/suunto_eonsteel_parser.c index 3c4040b..0d519cd 100644 --- a/src/suunto_eonsteel_parser.c +++ b/src/suunto_eonsteel_parser.c @@ -1427,6 +1427,8 @@ static int traverse_sample_fields(suunto_eonsteel_parser_t *eon, const struct ty set_depth_field(eon, array_uint16_le(data)); data += 2; continue; + default: + break; } break; }