From ab9ecb18253384ca96bee51db43d51c94e327afe Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Sat, 19 Sep 2026 15:53:37 +0300 Subject: [PATCH] cont : fix compile warnings --- tests/test-alloc.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test-alloc.cpp b/tests/test-alloc.cpp index 73e0b4e768..7a42cf5454 100644 --- a/tests/test-alloc.cpp +++ b/tests/test-alloc.cpp @@ -808,6 +808,8 @@ static void test_alloc_ctx_tensors_from_buft_size_matches() { x[2] = make_input_with_size(ctx, 8); assign_names(ctx); + GGML_UNUSED(x); + ggml_backend_buffer_ptr buffer = check_size_matches(&backend.buffer_type, ctx); GGML_ASSERT(buffer != nullptr); GGML_ASSERT(backend.context->allocated_total() == 24); @@ -823,6 +825,8 @@ static void test_alloc_ctx_tensors_from_buft_size_matches() { x[3] = make_input_with_size(ctx, 8); assign_names(ctx); + GGML_UNUSED(x); + ggml_backend_buffer_ptr buffer = check_size_matches(&backend.buffer_type, ctx); GGML_ASSERT(buffer != nullptr); GGML_ASSERT(backend.context->allocated_total() == 32); @@ -836,6 +840,9 @@ static void test_alloc_ctx_tensors_from_buft_size_matches() { ggml_tensor * extra = make_input_1d(ctx, 2); assign_names(ctx); + GGML_UNUSED(view); + GGML_UNUSED(extra); + ggml_backend_buffer_ptr buffer = check_size_matches(&backend.buffer_type, ctx); GGML_ASSERT(buffer != nullptr); GGML_ASSERT(backend.context->allocated_total() == 24);