Skip to content

Commit

Permalink
fix unreachable code warnings after GGML_ASSERT(false)
Browse files Browse the repository at this point in the history
  • Loading branch information
slaren committed Jul 26, 2024
1 parent 7d5a8c1 commit e0dbcdd
Show file tree
Hide file tree
Showing 4 changed files with 127 additions and 140 deletions.
1 change: 0 additions & 1 deletion ggml/src/ggml-alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ void ggml_tallocr_alloc(struct ggml_tallocr * talloc, struct ggml_tensor * tenso
fprintf(stderr, "%s: not enough space in the buffer to allocate %s (needed %zu, available %zu)\n",
__func__, tensor->name, size, ggml_backend_buffer_get_size(talloc->buffer) - talloc->offset);
GGML_ASSERT(!"not enough space in the buffer");
return;
}

void * addr = (char *)ggml_backend_buffer_get_base(talloc->buffer) + talloc->offset;
Expand Down
Loading

0 comments on commit e0dbcdd

Please sign in to comment.