mirror of
https://github.com/Icinga/icinga2.git
synced 2026-06-09 00:32:12 -04:00
Fix compiler warnings by replacing x&&y||z with (x&&y)||z
This commit is contained in:
parent
37b5c39e20
commit
315c9a3692
1 changed files with 2 additions and 2 deletions
|
|
@ -54,7 +54,7 @@ void Connect(Socket& socket, const String& node, const String& service)
|
|||
} catch (const std::exception& ex) {
|
||||
auto se (dynamic_cast<const boost::system::system_error*>(&ex));
|
||||
|
||||
if (se && se->code() == boost::asio::error::operation_aborted || ++current == result.end()) {
|
||||
if ((se && se->code() == boost::asio::error::operation_aborted) || ++current == result.end()) {
|
||||
throw;
|
||||
}
|
||||
|
||||
|
|
@ -84,7 +84,7 @@ void Connect(Socket& socket, const String& node, const String& service, boost::a
|
|||
} catch (const std::exception& ex) {
|
||||
auto se (dynamic_cast<const boost::system::system_error*>(&ex));
|
||||
|
||||
if (se && se->code() == boost::asio::error::operation_aborted || ++current == result.end()) {
|
||||
if ((se && se->code() == boost::asio::error::operation_aborted) || ++current == result.end()) {
|
||||
throw;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue