Skip to content

Commit f54ca7d

Browse files
committed
Fix compilation with clang.
Signed-off-by: Chris Lalancette <clalancette@gmail.com>
1 parent bff4fd0 commit f54ca7d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

rclcpp/include/rclcpp/rate.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ class RateBase
3939
RCLCPP_PUBLIC
4040
virtual bool sleep() = 0;
4141

42+
[[deprecated("use get_type() instead")]]
4243
RCLCPP_PUBLIC
43-
[[deprecated("use get_type() instead")]] virtual bool is_steady() const = 0;
44+
virtual bool is_steady() const = 0;
4445

4546
RCLCPP_PUBLIC
4647
virtual rcl_clock_type_t get_type() const = 0;
@@ -148,8 +149,8 @@ class Rate : public RateBase
148149
virtual bool
149150
sleep();
150151

151-
RCLCPP_PUBLIC
152152
[[deprecated("use get_type() instead")]]
153+
RCLCPP_PUBLIC
153154
virtual bool
154155
is_steady() const;
155156

0 commit comments

Comments
 (0)