:farmer: ignored warn_unused_result return values in test_event_message_lost_deadlock.cpp

Đang mở
#320 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@clalancette đang làm issue này rồi.

Từ ngày 24/11/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

bug
Generated by Generative AI

No

Operating System:

Ubuntu resolute

ROS version or commit hash:

Lyrical

RMW implementation (if applicable):

No response

RMW Configuration (if applicable):

No response

Client library (if applicable):

No response

'ros2 doctor --report' output

No response

Steps to reproduce issue
  1. Go to any of the jobs listed below
  2. Build a job
  3. See warnings showing up
Expected behavior

Build successfully

Actual behavior

Building with warnings

Additional information
Reference Build
Log Output
--- stderr: test_rmw_implementation
/tmp/ws/src/ros2/rmw_implementation/test_rmw_implementation/test/test_event_message_lost_deadlock.cpp: In lambda function:
/tmp/ws/src/ros2/rmw_implementation/test_rmw_implementation/test/test_event_message_lost_deadlock.cpp:148:26: warning: ignoring return value of ‘rmw_ret_t rmw_publish(const rmw_publisher_t*, const void*, rmw_publisher_allocation_t*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  148 |         (void)rmw_publish(pub, &msg, nullptr);
      |               ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
/tmp/ws/src/ros2/rmw_implementation/test_rmw_implementation/test/test_event_message_lost_deadlock.cpp: In lambda function:
/tmp/ws/src/ros2/rmw_implementation/test_rmw_implementation/test/test_event_message_lost_deadlock.cpp:159:29: warning: ignoring return value of ‘rmw_ret_t rmw_take_event(const rmw_event_t*, void*, bool*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  159 |         (void)rmw_take_event(&event, &status, &taken);
      |               ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
---

CC: @Crola1702

Ngôn ngữ chính
C++
Star
25
Fork
66
Merge trung bình
5 ngày 17 giờ
Pull request đã merge (30 ngày)
8

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ros2/rmw_implementation

Tất cả issue của ros2/rmw_implementation

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.