:farmer: ignored warn_unused_result return values in test_event_message_lost_deadlock.cpp

オープン
#320 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@clalancette がすでに取り組んでいます。

2026年11月24日 から。

評価

この issue はまだ評価されていません。

説明

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

主要言語
C++
スター
25
フォーク
66
平均マージ
5日 17時間
マージ済み PR(30日)
8

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ros2/rmw_implementation のほかの issue

ros2/rmw_implementation の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。