mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2026-09-27 21:46:57 +02:00
cont : fix compile warnings
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user