Skip to content

Commit

Permalink
ggml : fix -Warray-bounds warning with gcc (#4231)
Browse files Browse the repository at this point in the history
  • Loading branch information
cebtenzzre authored Nov 27, 2023
1 parent 3e73d31 commit f3b2698
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions ggml.c
Original file line number Diff line number Diff line change
Expand Up @@ -15689,13 +15689,14 @@ static int ggml_get_n_tasks(struct ggml_tensor * node, int n_threads) {
{
n_tasks = 1;
} break;
case GGML_OP_COUNT:
{
GGML_ASSERT(false);
} break;
default:
{
printf("%s: op %s not implemented\n", __func__, ggml_op_name(node->op));
fprintf(stderr, "%s: op not implemented: ", __func__);
if (node->op < GGML_OP_COUNT) {
fprintf(stderr, "%s\n", ggml_op_name(node->op));
} else {
fprintf(stderr, "%d\n", node->op);
}
GGML_ASSERT(false);
} break;
}
Expand Down

0 comments on commit f3b2698

Please sign in to comment.