Warnings removed

This commit is contained in:
Bertrand Songis
2016-03-10 18:40:15 +01:00
parent 051ec88bee
commit 62df9831d8
@@ -150,19 +150,19 @@ static int isQtOption(const QString& param)
if (param.left(5) == "-psn_") return 1; if (param.left(5) == "-psn_") return 1;
#endif #endif
QString name = param.mid(1), value; QString name = param.mid(1), value;
bool hasEquals; // bool hasEquals;
// Separate the option and the value, if present // Separate the option and the value, if present
if (name.indexOf('=') != -1) if (name.indexOf('=') != -1)
{ {
value = param.section('=', 1); value = param.section('=', 1);
name = param.section('=', 0, 0); name = param.section('=', 0, 0);
hasEquals = true; // hasEquals = true;
} }
else else
{ {
value = ""; value = "";
hasEquals = false; // hasEquals = false;
} }
const char* option; const char* option;
@@ -540,7 +540,7 @@ void QxtCommandOptionsPrivate::parse(const QStringList& params)
int ct = params.count(); int ct = params.count();
int skip = 0; int skip = 0;
bool endFlags = false; bool endFlags = false;
bool notUnrecognized, hasEquals; bool /*notUnrecognized, */hasEquals;
QString name, param, value; QString name, param, value;
while (pos < ct) while (pos < ct)
@@ -566,7 +566,7 @@ void QxtCommandOptionsPrivate::parse(const QStringList& params)
positional.append(param); positional.append(param);
continue; continue;
} }
notUnrecognized = false; // notUnrecognized = false;
if (flagStyle != QxtCommandOptions::Slash && param == "--") if (flagStyle != QxtCommandOptions::Slash && param == "--")
{ {