diff --git a/rmw_fastrtps_cpp/src/type_support_common.cpp b/rmw_fastrtps_cpp/src/type_support_common.cpp index 7b7f5ff2c8..6e92d52e5a 100644 --- a/rmw_fastrtps_cpp/src/type_support_common.cpp +++ b/rmw_fastrtps_cpp/src/type_support_common.cpp @@ -14,6 +14,9 @@ #include +#include +#include +#include #include #include "rmw/error_handling.h" @@ -151,10 +154,11 @@ bool TypeSupport::get_key_hash_from_ros_message( void * ros_message, eprosima::fastdds::rtps::InstanceHandle_t * ihandle, bool force_md5, - const void * [[maybe_unused]] impl) const + const void * impl) const { assert(ros_message); assert(ihandle); + (void)impl; // retrieve estimated serialized size in case key is unbounded if (key_is_unbounded_) { diff --git a/rmw_fastrtps_dynamic_cpp/src/TypeSupport.hpp b/rmw_fastrtps_dynamic_cpp/src/TypeSupport.hpp index ffc7e5aa15..82bfe573ad 100644 --- a/rmw_fastrtps_dynamic_cpp/src/TypeSupport.hpp +++ b/rmw_fastrtps_dynamic_cpp/src/TypeSupport.hpp @@ -16,6 +16,7 @@ #define TYPESUPPORT_HPP_ #include +#include #include #include "rosidl_runtime_c/string.h" diff --git a/rmw_fastrtps_dynamic_cpp/src/TypeSupport_impl.hpp b/rmw_fastrtps_dynamic_cpp/src/TypeSupport_impl.hpp index c27ebb386d..821cee08c8 100644 --- a/rmw_fastrtps_dynamic_cpp/src/TypeSupport_impl.hpp +++ b/rmw_fastrtps_dynamic_cpp/src/TypeSupport_impl.hpp @@ -16,6 +16,8 @@ #define TYPESUPPORT_IMPL_HPP_ #include +#include +#include #include #include @@ -1129,7 +1131,7 @@ bool TypeSupport::get_key_hash_from_ros_message( void * ros_message, eprosima::fastdds::rtps::InstanceHandle_t * ihandle, bool force_md5, - const void * [[maybe_unused]] impl) const + const void * impl) const { assert(ros_message); assert(ihandle); @@ -1137,6 +1139,7 @@ bool TypeSupport::get_key_hash_from_ros_message( bool ret = false; + (void)impl; if (members_->member_count_ != 0) { ret = TypeSupport::get_key_hash_from_ros_message(members_, ros_message, ihandle, force_md5); } diff --git a/rmw_fastrtps_shared_cpp/include/rmw_fastrtps_shared_cpp/TypeSupport.hpp b/rmw_fastrtps_shared_cpp/include/rmw_fastrtps_shared_cpp/TypeSupport.hpp index 20726828c6..814804e2a3 100644 --- a/rmw_fastrtps_shared_cpp/include/rmw_fastrtps_shared_cpp/TypeSupport.hpp +++ b/rmw_fastrtps_shared_cpp/include/rmw_fastrtps_shared_cpp/TypeSupport.hpp @@ -16,6 +16,7 @@ #define RMW_FASTRTPS_SHARED_CPP__TYPESUPPORT_HPP_ #include +#include #include #include diff --git a/rmw_fastrtps_shared_cpp/src/TypeSupport_impl.cpp b/rmw_fastrtps_shared_cpp/src/TypeSupport_impl.cpp index 206faf3d08..d3a8395b41 100644 --- a/rmw_fastrtps_shared_cpp/src/TypeSupport_impl.cpp +++ b/rmw_fastrtps_shared_cpp/src/TypeSupport_impl.cpp @@ -13,6 +13,7 @@ // limitations under the License. #include +#include #include #include #include