Skip to content

Commit

Permalink
Merge pull request #665 from alanb-sony/patch-1
Browse files Browse the repository at this point in the history
Fix visual studio warnings
  • Loading branch information
redboltz authored Sep 22, 2020
2 parents cd65c5f + 839e250 commit 31b46f3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions include/mqtt/endpoint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4549,8 +4549,8 @@ class endpoint : public std::enable_shared_from_this<endpoint<Mutex, LockGuard,
connected_ = false;
mqtt_connected_ = false;
{
boost::system::error_code ec;
socket_->close(ec);
boost::system::error_code ignored_ec;
socket_->close(ignored_ec);
}
}
if ( (ec == as::error::eof)
Expand Down
22 changes: 11 additions & 11 deletions include/mqtt/v5_message.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ class basic_publish_message {
std::accumulate(
props.begin(),
props.end(),
0U,
std::size_t(0U),
[](std::size_t total, property_variant const& pv) {
return total + v5::size(pv);
}
Expand All @@ -583,7 +583,7 @@ class basic_publish_message {
std::accumulate(
props_.begin(),
props_.end(),
0U,
std::size_t(0U),
[](std::size_t total, property_variant const& pv) {
return total + v5::num_of_const_buffer_sequence(pv);
}
Expand Down Expand Up @@ -681,7 +681,7 @@ class basic_publish_message {
std::accumulate(
props_.begin(),
props_.end(),
0U,
std::size_t(0U),
[](std::size_t total, property_variant const& pv) {
return total + v5::num_of_const_buffer_sequence(pv);
}
Expand Down Expand Up @@ -1825,7 +1825,7 @@ class basic_subscribe_message {
std::accumulate(
props.begin(),
props.end(),
0U,
std::size_t(0U),
[](std::size_t total, property_variant const& pv) {
return total + v5::size(pv);
}
Expand All @@ -1840,7 +1840,7 @@ class basic_subscribe_message {
std::accumulate(
props_.begin(),
props_.end(),
0U,
std::size_t(0U),
[](std::size_t total, property_variant const& pv) {
return total + v5::num_of_const_buffer_sequence(pv);
}
Expand Down Expand Up @@ -1994,7 +1994,7 @@ class basic_suback_message {
std::accumulate(
props.begin(),
props.end(),
0U,
std::size_t(0U),
[](std::size_t total, property_variant const& pv) {
return total + v5::size(pv);
}
Expand All @@ -2009,7 +2009,7 @@ class basic_suback_message {
std::accumulate(
props_.begin(),
props_.end(),
0U,
std::size_t(0U),
[](std::size_t total, property_variant const& pv) {
return total + v5::num_of_const_buffer_sequence(pv);
}
Expand Down Expand Up @@ -2148,7 +2148,7 @@ class basic_unsubscribe_message {
std::accumulate(
props.begin(),
props.end(),
0U,
std::size_t(0U),
[](std::size_t total, property_variant const& pv) {
return total + v5::size(pv);
}
Expand All @@ -2163,7 +2163,7 @@ class basic_unsubscribe_message {
std::accumulate(
props_.begin(),
props_.end(),
0U,
std::size_t(0U),
[](std::size_t total, property_variant const& pv) {
return total + v5::num_of_const_buffer_sequence(pv);
}
Expand Down Expand Up @@ -2308,7 +2308,7 @@ class basic_unsuback_message {
std::accumulate(
props.begin(),
props.end(),
0U,
std::size_t(0U),
[](std::size_t total, property_variant const& pv) {
return total + v5::size(pv);
}
Expand All @@ -2323,7 +2323,7 @@ class basic_unsuback_message {
std::accumulate(
props_.begin(),
props_.end(),
0U,
std::size_t(0U),
[](std::size_t total, property_variant const& pv) {
return total + v5::num_of_const_buffer_sequence(pv);
}
Expand Down

0 comments on commit 31b46f3

Please sign in to comment.