You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unused variable warning when compiling in RelWithDebInfo #15
The problem is that the variable is only referenced inside an assert(), which is presumably being compiled out under RelWithDebInfo.
Building C object CMakeFiles/rcl__rmw_opensplice_cpp.dir/src/rcl/timer.c.o
/home/gerkey/ros2_ws/src/ros2/rcl/rcl/src/rcl/wait.c: In function ‘__wait_set_clean_up’:
/home/gerkey/ros2_ws/src/ros2/rcl/rcl/src/rcl/wait.c:66:13: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
rcl_ret_t ret;
^
/home/gerkey/ros2_ws/src/ros2/rcl/rcl/src/rcl/wait.c: In function ‘rcl_wait’:
/home/gerkey/ros2_ws/src/ros2/rcl/rcl/src/rcl/wait.c:431:15: warning: variable ‘rcl_ret’ set but not used [-Wunused-but-set-variable]
rcl_ret_t rcl_ret;
^
Activity
wjwwood commentedon Jan 5, 2016
I'd just add a
(void)ret;after each of those lines.wjwwood commentedon Jan 5, 2016
I'm looking into a pr for this.
dirk-thomas commentedon Feb 5, 2016
Can this be closed?
gerkey commentedon Feb 17, 2016
Confirmed fixed when building
RelWithDebInfoon Linux.just some small doc fixups (ros2#15)
Fix leak in test_logging_macros.cpp (ros2#152)
Fix leak in test_logging.cpp (ros2#153)
Merge pull request #15 from ros2/qos
Merge pull request ros2#15 from mauropasse/mauro/group-callback-data