From 83eaec1118f76be07f25a61e5ad1abb3b64a6037 Mon Sep 17 00:00:00 2001 From: Haiyue Wang Date: Sun, 21 Sep 2025 12:37:38 +0800 Subject: [PATCH] common : remove unused local variables These two local variables 'arg' and 'arg_prefix' have been overriden by: 1. for (const auto & arg : opt.args) 2. for (int i = 1; i < argc; i++) { const std::string arg_prefix = "--"; std::string arg = argv[i]; --- common/arg.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/common/arg.cpp b/common/arg.cpp index 54df2df87276c..612336870ea7a 100644 --- a/common/arg.cpp +++ b/common/arg.cpp @@ -1068,8 +1068,6 @@ static std::string get_all_kv_cache_types() { // static bool common_params_parse_ex(int argc, char ** argv, common_params_context & ctx_arg) { - std::string arg; - const std::string arg_prefix = "--"; common_params & params = ctx_arg.params; std::unordered_map arg_to_options;