fix warnings

Reviewers: korina

Reviewed By: korina

Subscribers: miljen

Differential Revision: https://repo.mireo.local/D32452
This commit is contained in:
Bruno Iljazovic
2024-11-27 14:52:50 +01:00
parent f22a3c7bec
commit 67152be209
3 changed files with 5 additions and 5 deletions

View File

@ -15,8 +15,8 @@
namespace async_mqtt5::detail {
static constexpr uint32_t min_subscription_identifier = 1;
static constexpr uint32_t max_subscription_identifier = 268'435'455;
static constexpr int32_t min_subscription_identifier = 1;
static constexpr int32_t max_subscription_identifier = 268'435'455;
static constexpr std::string_view shared_sub_prefix = "$share/";

View File

@ -95,9 +95,9 @@ public:
auto s2 = other._serial_num;
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:

View File

@ -63,7 +63,7 @@ public:
);
}
void operator()(on_timer, error_code ec) {
void operator()(on_timer, error_code) {
if (!_svc_ptr->is_open())
return complete();