From 8f130f962e867db24e4012f2d3e90bac2f86bef3 Mon Sep 17 00:00:00 2001 From: Ryan Friedman Date: Mon, 30 Oct 2023 18:18:58 -0600 Subject: [PATCH] Rover: Add WARN_IF_UNUSED Signed-off-by: Ryan Friedman --- Rover/AP_ExternalControl_Rover.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Rover/AP_ExternalControl_Rover.h b/Rover/AP_ExternalControl_Rover.h index 28647968d67d7..434972833e45d 100644 --- a/Rover/AP_ExternalControl_Rover.h +++ b/Rover/AP_ExternalControl_Rover.h @@ -14,13 +14,13 @@ class AP_ExternalControl_Rover : public AP_ExternalControl { Velocity is in earth frame, NED [m/s]. Yaw is in earth frame, NED [rad/s]. */ - bool set_linear_velocity_and_yaw_rate(const Vector3f &linear_velocity, float yaw_rate_rads) override; + bool set_linear_velocity_and_yaw_rate(const Vector3f &linear_velocity, float yaw_rate_rads)override WARN_IF_UNUSED; private: /* Return true if Rover is ready to handle external control data. Currently checks mode and arm states. */ - bool ready_for_external_control(); + bool ready_for_external_control() WARN_IF_UNUSED; }; #endif // AP_EXTERNAL_CONTROL_ENABLED