Fixed compilation warnings

This commit is contained in:
Sour 2019-07-03 19:12:01 -04:00
parent a70a746df1
commit 103541a2a6
3 changed files with 4 additions and 4 deletions

View file

@ -92,7 +92,7 @@ void BaseControlDevice::SetTextState(string textState)
try {
pos.X = (int16_t)std::stol(data[0]);
pos.Y = (int16_t)std::stol(data[1]);
} catch(std::exception &ex) {
} catch(std::exception&) {
pos.X = -1;
pos.Y = -1;
}

View file

@ -529,7 +529,7 @@ int32_t ExpressionEvaluator::Evaluate(string expression, DebugState &state, Eval
if(success) {
return result;
}
} catch(std::exception &e) {
} catch(std::exception&) {
}
resultType = EvalResultType::Invalid;
return 0;
@ -544,7 +544,7 @@ bool ExpressionEvaluator::Validate(string expression)
bool success;
PrivateEvaluate(expression, state, type, operationInfo, success);
return success;
} catch(std::exception &e) {
} catch(std::exception&) {
return false;
}
}

View file

@ -235,7 +235,7 @@ void SaveStateManager::LoadRecentGame(string filename, bool resetGame)
SaveStateManager::LoadState(stateStream, false);
}
}
} catch(std::exception &ex) {
} catch(std::exception&) {
_console->Stop(true);
}
_console->Unlock();