Skip to content

Commit fa59680

Browse files
authored
Disable compare-function-pointers in test_utilities (#2489)
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
1 parent 3cdb259 commit fa59680

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

rclcpp/test/rclcpp/test_utilities.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,20 @@
2525
#include "rclcpp/exceptions.hpp"
2626
#include "rclcpp/utilities.hpp"
2727

28+
#ifdef __clang__
29+
#pragma clang diagnostic push
30+
#pragma clang diagnostic ignored "-Wordered-compare-function-pointers"
31+
#endif
32+
// TODO(ahcorde): the function mocking_utils::patch_and_return called with
33+
// rcl_logging_configure_with_output_handler is returning: "Comparison between pointer and integer"
34+
// Disabling this warning is fine for now.
35+
// Related issue https://github.com/ros2/rclcpp/issues/2488
2836
#include "../mocking_utils/patch.hpp"
37+
38+
#ifdef __clang__
39+
#pragma clang diagnostic pop
40+
#endif
41+
2942
#include "../utils/rclcpp_gtest_macros.hpp"
3043

3144
TEST(TestUtilities, remove_ros_arguments) {

0 commit comments

Comments
 (0)