[ros-users] GCC no-unused-parameter & generated headers
gerkey at willowgarage.com
Mon May 9 22:45:27 UTC 2011
Sounds reasonable that we should be able to generate headers that
don't produce that warning. Could you please file tickets for them?
roscpp (if the same thing happens with roscpp's code generators):
On Mon, May 9, 2011 at 10:04 AM, Daniel Pinyol
<daniel.pinol at pal-robotics.com> wrote:
> 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: +18.104.22.168.09
> C/ Pujades 77-79 4º 4ª 08005 Barcelona, Spain.
> ros-users mailing list
> ros-users at code.ros.org
More information about the ros-users