From 6ea435f743e8ee54f367a8eb51cdbfa9910d9f17 Mon Sep 17 00:00:00 2001 From: William Woodall Date: Tue, 6 Sep 2016 16:35:10 -0700 Subject: [PATCH] Issue 251 wjwwood (#252) * removed warning in windows * removed warning in windows * fixup --- rclcpp/include/rclcpp/allocator/allocator_common.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rclcpp/include/rclcpp/allocator/allocator_common.hpp b/rclcpp/include/rclcpp/allocator/allocator_common.hpp index 01333e7..dccfe4f 100644 --- a/rclcpp/include/rclcpp/allocator/allocator_common.hpp +++ b/rclcpp/include/rclcpp/allocator/allocator_common.hpp @@ -74,6 +74,8 @@ rcl_allocator_t get_rcl_allocator(Alloc & allocator) rcl_allocator.deallocate = &retyped_deallocate; rcl_allocator.reallocate = &retyped_reallocate; rcl_allocator.state = &allocator; +#else + (void)allocator; // Remove warning #endif return rcl_allocator; }