Skip to content

Commit

Permalink
Silence tcc 'function might return no value' warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
aganm authored and SanderMertens committed May 2, 2023
1 parent c069994 commit 1d1ec0c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flecs.c
Original file line number Diff line number Diff line change
Expand Up @@ -27799,6 +27799,7 @@ ecs_entity_t flecs_largest_type(
case EcsEntity: return ecs_id(ecs_entity_t);
default: ecs_abort(ECS_INTERNAL_ERROR, NULL);
}
return 0;
}

/** Test if a normalized type can promote to another type in an expression */
Expand Down Expand Up @@ -42681,6 +42682,7 @@ ecs_oper_kind_t flecs_parse_operator(
} else {
ecs_abort(ECS_INTERNAL_ERROR, NULL);
}
return 0;
}

static
Expand Down
1 change: 1 addition & 0 deletions src/addons/expr/deserialize.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ ecs_entity_t flecs_largest_type(
case EcsEntity: return ecs_id(ecs_entity_t);
default: ecs_abort(ECS_INTERNAL_ERROR, NULL);
}
return 0;
}

/** Test if a normalized type can promote to another type in an expression */
Expand Down
1 change: 1 addition & 0 deletions src/addons/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ ecs_oper_kind_t flecs_parse_operator(
} else {
ecs_abort(ECS_INTERNAL_ERROR, NULL);
}
return 0;
}

static
Expand Down

0 comments on commit 1d1ec0c

Please sign in to comment.