We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 373a63c commit df3a303Copy full SHA for df3a303
rclcpp/test/rclcpp/test_qos.cpp
@@ -277,7 +277,8 @@ TEST(TestQoS, from_rmw_validity)
277
{
278
rmw_qos_profile_t invalid_qos;
279
memset(&invalid_qos, 0, sizeof(invalid_qos));
280
- reinterpret_cast<uint32_t &>(invalid_qos.history) = 999;
+ unsigned int n = 999;
281
+ memcpy(&invalid_qos.history, &n, sizeof(n));
282
283
EXPECT_THROW({
284
rclcpp::QoSInitialization::from_rmw(invalid_qos);
0 commit comments