[ros-users] GCC no-unused-parameter & generated headers
daniel.pinol at pal-robotics.com
Mon May 9 17:04:54 UTC 2011
Compiling ROS generated headers (eg from an actionlib or client message)
cause a lot of long GCC no-unused-parameters warnings.
warning: unused parameter ‘seq’
In file included from
In instantiation of ‘uint8_t * actionlib_msgs::GoalID_<std::allocator<void>
>::serialize(uint8_t *, uint32_t) const’:
These warnings are hidden when building with rosmake with
-Wno-unused-parameter, but our internal QA policy defines that this warning
should not be hidden.
I've tried hiding it with a c++ pragma around the headers include , but it
does not work because the templates compilation occurs when the class is
Would it be possible in future ROS versions that the generated headers do
not include unused arguments?
Pal Robotics S.L.
C/ Pujades 77-79 4º 4ª 08005 Barcelona, Spain.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ros-users