diff --git a/rmw_zenoh_cpp/src/detail/liveliness_utils.cpp b/rmw_zenoh_cpp/src/detail/liveliness_utils.cpp index db93ec3f..430468f1 100644 --- a/rmw_zenoh_cpp/src/detail/liveliness_utils.cpp +++ b/rmw_zenoh_cpp/src/detail/liveliness_utils.cpp @@ -192,7 +192,7 @@ std::optional keyexpr_to_qos(const std::string & keyexpr) // Get the history depth. errno = 0; char * endptr; - unsigned long num = strtoul(history_parts[1].c_str(), &endptr, 10); + size_t num = strtoul(history_parts[1].c_str(), &endptr, 10); if (endptr == history_parts[1].c_str()) { // No values were converted, this is an error RMW_SET_ERROR_MSG("no valid numbers available"); diff --git a/rmw_zenoh_cpp/src/detail/rmw_data_types.cpp b/rmw_zenoh_cpp/src/detail/rmw_data_types.cpp index 7effa150..99eb3fd9 100644 --- a/rmw_zenoh_cpp/src/detail/rmw_data_types.cpp +++ b/rmw_zenoh_cpp/src/detail/rmw_data_types.cpp @@ -95,7 +95,6 @@ void rmw_subscription_data_t::add_new_message( z_drop(z_move(old->payload)); message_queue_.pop_front(); } - } message_queue_.emplace_back(std::move(msg)); diff --git a/rmw_zenoh_cpp/src/rmw_qos.cpp b/rmw_zenoh_cpp/src/rmw_qos.cpp index 2cb42577..0dcf6a4d 100644 --- a/rmw_zenoh_cpp/src/rmw_qos.cpp +++ b/rmw_zenoh_cpp/src/rmw_qos.cpp @@ -28,7 +28,6 @@ rmw_qos_profile_check_compatible( char * reason, size_t reason_size) { - // In Zenoh, publishers do not have any reliability settings. // A publisher and subscription are only incompatible if the durability of the publisher is // TRANSIENT_LOCAL but that of the subscription is not. In such a scenario, a late-joining