cuda: fix warnings for unused variable/function (#26688)

This commit is contained in:
David Friehs
2026-08-07 07:51:56 +03:00
committed by GitHub
parent d8d9887228
commit 5b87ed30f8
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -5209,6 +5209,7 @@ static bool ggml_backend_cuda_device_offload_op(ggml_backend_dev_t dev, const gg
static ggml_backend_event_t ggml_backend_cuda_device_event_new(ggml_backend_dev_t dev) {
#ifdef GGML_CUDA_NO_PEER_COPY
GGML_UNUSED(dev);
return nullptr;
#else
ggml_backend_cuda_device_context * dev_ctx = (ggml_backend_cuda_device_context *)dev->context;