Compiler warnings

This commit is contained in:
Kawrakow 2026-06-24 09:34:58 +00:00
parent 118c82d8ef
commit de6c2dfdec
2 changed files with 2 additions and 2 deletions

View File

@ -1053,7 +1053,7 @@ void llama_model_loader::load_data_for(struct ggml_tensor * cur) const {
// Returns false if cancelled by progress_callback
bool llama_model_loader::load_all_data(
struct ggml_context * ctx,
struct llama_model * model,
[[maybe_unused]] llama_model * model,
llama_buf_map & bufs_mmap,
llama_mlocks * lmlocks,
llama_progress_callback progress_callback,

View File

@ -7146,7 +7146,7 @@ struct llama_context * llama_init_from_model(
// main_gpu is a local index into model->devices throughout the codebase
// (auto-fit assigns device_count-1, MTP clamps to [0, device_count), buffer-type
// setup wraps with model.devices[main_gpu]). Translate to a raw device id here.
const int main_gpu_id = (model->main_gpu >= 0 && model->main_gpu < (int)model->devices.size())
[[maybe_unused]] const int main_gpu_id = (model->main_gpu >= 0 && model->main_gpu < (int)model->devices.size())
? model->devices[model->main_gpu]
: model->main_gpu;
#if defined(GGML_USE_METAL)