Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix visual studio warnings #665

Merged
merged 2 commits into from
Sep 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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