Skip to content

Commit c0706fd

Browse files
authored
address RHEL warnings and missing includes. (#819)
Signed-off-by: Tomoya Fujita <[email protected]>
1 parent 977ac28 commit c0706fd

File tree

5 files changed

+12
-2
lines changed

5 files changed

+12
-2
lines changed

rmw_fastrtps_cpp/src/type_support_common.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414

1515
#include <fastcdr/exceptions/Exception.h>
1616

17+
#include <cstddef>
18+
#include <cstdint>
19+
#include <cstring>
1720
#include <string>
1821

1922
#include "rmw/error_handling.h"
@@ -151,10 +154,11 @@ bool TypeSupport::get_key_hash_from_ros_message(
151154
void * ros_message,
152155
eprosima::fastdds::rtps::InstanceHandle_t * ihandle,
153156
bool force_md5,
154-
const void * [[maybe_unused]] impl) const
157+
const void * impl) const
155158
{
156159
assert(ros_message);
157160
assert(ihandle);
161+
(void)impl;
158162

159163
// retrieve estimated serialized size in case key is unbounded
160164
if (key_is_unbounded_) {

rmw_fastrtps_dynamic_cpp/src/TypeSupport.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#define TYPESUPPORT_HPP_
1717

1818
#include <cassert>
19+
#include <cstddef>
1920
#include <string>
2021

2122
#include "rosidl_runtime_c/string.h"

rmw_fastrtps_dynamic_cpp/src/TypeSupport_impl.hpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
#define TYPESUPPORT_IMPL_HPP_
1717

1818
#include <cassert>
19+
#include <cstddef>
20+
#include <cstdint>
1921
#include <string>
2022
#include <vector>
2123

@@ -1129,14 +1131,15 @@ bool TypeSupport<MembersType>::get_key_hash_from_ros_message(
11291131
void * ros_message,
11301132
eprosima::fastdds::rtps::InstanceHandle_t * ihandle,
11311133
bool force_md5,
1132-
const void * [[maybe_unused]] impl) const
1134+
const void * impl) const
11331135
{
11341136
assert(ros_message);
11351137
assert(ihandle);
11361138
assert(members_);
11371139

11381140
bool ret = false;
11391141

1142+
(void)impl;
11401143
if (members_->member_count_ != 0) {
11411144
ret = TypeSupport::get_key_hash_from_ros_message(members_, ros_message, ihandle, force_md5);
11421145
}

rmw_fastrtps_shared_cpp/include/rmw_fastrtps_shared_cpp/TypeSupport.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#define RMW_FASTRTPS_SHARED_CPP__TYPESUPPORT_HPP_
1717

1818
#include <cassert>
19+
#include <cstddef>
1920
#include <string>
2021
#include <vector>
2122

rmw_fastrtps_shared_cpp/src/TypeSupport_impl.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// limitations under the License.
1414

1515
#include <cassert>
16+
#include <mutex>
1617
#include <sstream>
1718
#include <string>
1819
#include <utility>

0 commit comments

Comments
 (0)