Suppressing the ROS_CREATE_SIMPLE_SERIALIZER_ARM warnings when building from source
When building ros_comm
from source for an ARM architecture, I get multiple warnings about the ROS_CREATE_SIMPLE_SERIALIZER_ARM
macro. Here's a snippet:
In file included from /usr/catkin_ws/src/ros_comm/rosbag_storage/include/rosbag/message_instance.h:39:0,
from /usr/catkin_ws/src/ros_comm/rosbag_storage/include/rosbag/view.h:41,
from /usr/catkin_ws/src/ros_comm/rosbag_storage/src/view.cpp:28:
/opt/ros/indigo/include/ros/serialization.h:207:56: warning: unused parameter ‘t’ [-Wunused-parameter]
inline static uint32_t serializedLength(const Type t) \
^
/opt/ros/indigo/include/ros/serialization.h:214:5: note: in expansion of macro ‘ROS_CREATE_SIMPLE_SERIALIZER_ARM’
ROS_CREATE_SIMPLE_SERIALIZER_ARM(uint8_t);
^
/opt/ros/indigo/include/ros/serialization.h:207:56: warning: unused parameter ‘t’ [-Wunused-parameter]
inline static uint32_t serializedLength(const Type t) \
^
/opt/ros/indigo/include/ros/serialization.h:215:5: note: in expansion of macro ‘ROS_CREATE_SIMPLE_SERIALIZER_ARM’
ROS_CREATE_SIMPLE_SERIALIZER_ARM(int8_t);
^
Is there a simple way to get rid of (or just suppress) these specific warnings? For example, I'm guessing I can pass a make
flag that suppresses all warnings of this type: -Wunused-parameter
. What would that look like?