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.
This commit is contained in:
parent
0ed5e6d653
commit
21f3dbcb04
@ -360,6 +360,8 @@ suunto_eonsteel_parser_get_field(dc_parser_t *parser, dc_field_type_t type, unsi
|
|||||||
case DC_FIELD_ATMOSPHERIC:
|
case DC_FIELD_ATMOSPHERIC:
|
||||||
field_value(value, eon->cache.surface_pressure);
|
field_value(value, eon->cache.surface_pressure);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
return DC_STATUS_UNSUPPORTED;
|
||||||
}
|
}
|
||||||
return DC_STATUS_SUCCESS;
|
return DC_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user