Skip to content

Commit d05affb

Browse files
authored
common : remove unused local variables (ggml-org#16140)
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];
1 parent 4f324a5 commit d05affb

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

common/arg.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,8 +1068,6 @@ static std::string get_all_kv_cache_types() {
10681068
//
10691069

10701070
static bool common_params_parse_ex(int argc, char ** argv, common_params_context & ctx_arg) {
1071-
std::string arg;
1072-
const std::string arg_prefix = "--";
10731071
common_params & params = ctx_arg.params;
10741072

10751073
std::unordered_map<std::string, common_arg *> arg_to_options;

0 commit comments

Comments
 (0)