cmake : re-enable GCC -Wshadow

ggml-ci
This commit is contained in:
Georgi Gerganov 2025-01-12 15:29:33 +02:00
parent 34889bf810
commit 439e68c1e5
No known key found for this signature in database
GPG key ID: 449E073F9DC10735
16 changed files with 73 additions and 65 deletions

View file

@ -204,14 +204,14 @@ struct split_strategy {
// temporary buffer for reading in tensor data
std::vector<uint8_t> read_buf;
split_strategy(const split_params & params,
std::ifstream & f_input,
struct gguf_context * ctx_gguf,
struct ggml_context * ctx_meta) :
params(params),
f_input(f_input),
ctx_gguf(ctx_gguf),
ctx_meta(ctx_meta),
split_strategy(const split_params & params_,
std::ifstream & f_input_,
struct gguf_context * ctx_gguf_,
struct ggml_context * ctx_meta_) :
params(params_),
f_input(f_input_),
ctx_gguf(ctx_gguf_),
ctx_meta(ctx_meta_),
n_tensors(gguf_get_n_tensors(ctx_gguf)) {
// because we need to know list of tensors for each file in advance, we will build all the ctx_out for all output splits