Skip to content

Commit 02de6df

Browse files
committed
fix(gateway): drop useless cast in SSE keepalive warning log
chrono::milliseconds::count() already returns int64_t on the platforms we target, matching PRId64. The redundant static_cast triggered -Wuseless-cast on GCC.
1 parent e8babc0 commit 02de6df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ros2_medkit_gateway/src/http/handlers/sse_fault_handler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ SSEFaultHandler::SSEFaultHandler(HandlerContext & ctx, std::shared_ptr<SSEClient
5252
if (keepalive_interval <= std::chrono::milliseconds::zero()) {
5353
RCLCPP_WARN(HandlerContext::logger(),
5454
"Non-positive SSE keepalive override %" PRId64 "ms rejected; using default %ds",
55-
static_cast<int64_t>(keepalive_interval.count()), kKeepaliveIntervalSec);
55+
keepalive_interval.count(), kKeepaliveIntervalSec);
5656
}
5757

5858
const auto fault_events_topic = build_fault_manager_events_topic(ctx_.node());

0 commit comments

Comments
 (0)