Skip to content

Commit

Permalink
gh-674: Add abort for unreachable code
Browse files Browse the repository at this point in the history
  • Loading branch information
pnoltes committed Mar 24, 2024
1 parent 5cfdf19 commit 0ce0841
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/utils/src/properties.c
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@ celix_status_t celix_properties_getAsLongArrayList(const celix_properties_t* pro
return CELIX_SUCCESS;
}

celix_properties_value_type_e celix_properties_getPropertiesTypeFromArrayList(const celix_array_list_t* list) {
static celix_properties_value_type_e celix_properties_getPropertiesTypeFromArrayList(const celix_array_list_t* list) {
switch (celix_arrayList_getElementType(list)) {
case CELIX_ARRAY_LIST_ELEMENT_TYPE_LONG:
return CELIX_PROPERTIES_VALUE_TYPE_LONG_ARRAY;
Expand All @@ -963,6 +963,7 @@ celix_properties_value_type_e celix_properties_getPropertiesTypeFromArrayList(co
default:
//LCOV_EXCL_START
assert(false);
abort();
//LCOV_EXCL_STOP
}
}
Expand Down

0 comments on commit 0ce0841

Please sign in to comment.