Skip to content

Commit e0dbcdd

Browse files
committed
fix unreachable code warnings after GGML_ASSERT(false)
1 parent 7d5a8c1 commit e0dbcdd

File tree

4 files changed

+127
-140
lines changed

4 files changed

+127
-140
lines changed

ggml/src/ggml-alloc.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ void ggml_tallocr_alloc(struct ggml_tallocr * talloc, struct ggml_tensor * tenso
9292
fprintf(stderr, "%s: not enough space in the buffer to allocate %s (needed %zu, available %zu)\n",
9393
__func__, tensor->name, size, ggml_backend_buffer_get_size(talloc->buffer) - talloc->offset);
9494
GGML_ASSERT(!"not enough space in the buffer");
95-
return;
9695
}
9796

9897
void * addr = (char *)ggml_backend_buffer_get_base(talloc->buffer) + talloc->offset;

0 commit comments

Comments
 (0)