From 21f3dbcb04a6903e8a248381fa49768632bf08d6 Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Thu, 20 Nov 2014 21:11:29 +0100 Subject: [PATCH] Add a default case to the switch statement. This is only the silence the "enumeration value not handled in switch" compiler warning. There is already a check earlier on to take care of unsupported fields, but the default case is a good practice anyway. --- 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 aeb58c2..e5736a5 100644 --- a/src/suunto_eonsteel_parser.c +++ b/src/suunto_eonsteel_parser.c @@ -360,6 +360,8 @@ suunto_eonsteel_parser_get_field(dc_parser_t *parser, dc_field_type_t type, unsi case DC_FIELD_ATMOSPHERIC: field_value(value, eon->cache.surface_pressure); break; + default: + return DC_STATUS_UNSUPPORTED; } return DC_STATUS_SUCCESS; }