From 32a103d5b530c4cf0709e02f2c893c752c9e3c97 Mon Sep 17 00:00:00 2001 From: Pavel Belikov Date: Sat, 23 Dec 2017 21:33:19 +0300 Subject: fix warnings --- args.hxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/args.hxx b/args.hxx index dc802ad..cfbc590 100644 --- a/args.hxx +++ b/args.hxx @@ -2516,9 +2516,9 @@ namespace args auto &matcher = flag->GetMatcher(); if (!AddCompletionReply(chunk, matcher.GetShortOrAny().str(shortprefix, longprefix))) { - for (auto &name : matcher.GetFlagStrings()) + for (auto &flagName : matcher.GetFlagStrings()) { - if (AddCompletionReply(chunk, name.str(shortprefix, longprefix))) + if (AddCompletionReply(chunk, flagName.str(shortprefix, longprefix))) { break; } @@ -2544,13 +2544,13 @@ namespace args { if (chunk.size() > shortprefix.size() + 1) { - auto name = chunk.at(shortprefix.size()); + auto arg = chunk.at(shortprefix.size()); //TODO: support -abcVALUE where a and b take no value - if (auto flag = this->Match(name)) + if (auto flag = this->Match(arg)) { for (auto &choice : flag->HelpChoices(helpParams)) { - AddCompletionReply(chunk, shortprefix + name + choice); + AddCompletionReply(chunk, shortprefix + arg + choice); } } } @@ -2708,7 +2708,7 @@ namespace args Parse(curArgs.begin(), curArgs.end()); throw Completion(""); } - catch (Completion &e) + catch (Completion &) { throw; } -- cgit v1.2.1