Fixed compilation warnings
This commit is contained in:
parent
a70a746df1
commit
103541a2a6
3 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue