[ros-users] GCC no-unused-parameter & generated headers

Daniel Pinyol 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?


Daniel Pinyol
Software Manager
Pal Robotics S.L.

Tel: +34.93.414.53.47
Fax: +
C/ Pujades 77-79 4º 4ª 08005 Barcelona, Spain.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osuosl.org/pipermail/ros-users/attachments/20110509/67fa3bca/attachment-0001.html>

More information about the ros-users mailing list