mirror of
https://github.com/boostorg/mqtt5.git
synced 2025-07-31 13:07:37 +02:00
fix warnings
Reviewers: korina Reviewed By: korina Subscribers: miljen Differential Revision: https://repo.mireo.local/D32452
This commit is contained in:
@ -15,8 +15,8 @@
|
|||||||
|
|
||||||
namespace async_mqtt5::detail {
|
namespace async_mqtt5::detail {
|
||||||
|
|
||||||
static constexpr uint32_t min_subscription_identifier = 1;
|
static constexpr int32_t min_subscription_identifier = 1;
|
||||||
static constexpr uint32_t max_subscription_identifier = 268'435'455;
|
static constexpr int32_t max_subscription_identifier = 268'435'455;
|
||||||
|
|
||||||
static constexpr std::string_view shared_sub_prefix = "$share/";
|
static constexpr std::string_view shared_sub_prefix = "$share/";
|
||||||
|
|
||||||
|
@ -95,9 +95,9 @@ public:
|
|||||||
auto s2 = other._serial_num;
|
auto s2 = other._serial_num;
|
||||||
|
|
||||||
if (s1 < s2)
|
if (s1 < s2)
|
||||||
return (s2 - s1) < (1 << (SERIAL_BITS - 1));
|
return (s2 - s1) < (1u << (SERIAL_BITS - 1));
|
||||||
|
|
||||||
return (s1 - s2) >= (1 << (SERIAL_BITS - 1));
|
return (s1 - s2) >= (1u << (SERIAL_BITS - 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -63,7 +63,7 @@ public:
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
void operator()(on_timer, error_code ec) {
|
void operator()(on_timer, error_code) {
|
||||||
if (!_svc_ptr->is_open())
|
if (!_svc_ptr->is_open())
|
||||||
return complete();
|
return complete();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user