Fix [[nodiscard]] warning in VS (applies only to C++17 mode).

This commit is contained in:
Stephen Anthony 2018-05-12 22:33:15 -02:30
parent dc77f5d5f1
commit cf8f76a0e1
1 changed files with 3 additions and 3 deletions

View File

@ -414,7 +414,7 @@ bool DebuggerParser::validateArgs(int cmd)
{
if(required)
{
commandResult.str();
void(commandResult.str());
outputCommandError("missing required argument(s)", cmd);
return false; // needed args. didn't get 'em.
}
@ -513,13 +513,13 @@ cerr << "curCount = " << curCount << endl
if(curCount < argRequiredCount)
{
commandResult.str();
void(commandResult.str());
outputCommandError("missing required argument(s)", cmd);
return false;
}
else if(argCount > curCount)
{
commandResult.str();
void(commandResult.str());
outputCommandError("too many arguments", cmd);
return false;
}