OpenRTM / OpenRTM-aist

OpenRTM-aist: RT-Middleware and OMG RTC implementation in C++ implemented by AIST
https://openrtm.org/
Other
19 stars 12 forks source link

RTC::LogicalTimeTriggeredEC::svc のスリープ時間のログ出力処理の確認 #536

Closed tonboAkinori closed 5 years ago

tonboAkinori commented 5 years ago

コンパイラの警告対応中に下記の警告が出力されました。 この警告箇所の変数が必要ではないかと思ったので確認させてください。

483 にて変更されています。

指摘箇所の後にある処理の RTC_PARANOID は t3 -t0 ではなく t2 からのスリープ時間で t3-t2 のtypo?

/root/OpenRTM-aist/src/ext/ec/logical_time/LogicalTimeTriggeredEC.cpp: In member function 'virtual int RTC::LogicalTimeTriggeredEC::svc()':
/root/OpenRTM-aist/src/ext/ec/logical_time/LogicalTimeTriggeredEC.cpp:152:14: warning: variable 't2' set but not used [-Wunused-but-set-variable]
         auto t2 = std::chrono::steady_clock::now();
r-kurose commented 5 years ago

ありがとうございます。バグなので修正します。