From 1fa88bacd99745053fd05ebd31ba24d846af0a59 Mon Sep 17 00:00:00 2001 From: Ryan Friedman Date: Mon, 30 Oct 2023 18:18:46 -0600 Subject: [PATCH] Copter: Add WARN_IF_UNUSED Signed-off-by: Ryan Friedman --- ArduCopter/AP_ExternalControl_Copter.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArduCopter/AP_ExternalControl_Copter.h b/ArduCopter/AP_ExternalControl_Copter.h index e9a879106ebef..e7601c5552fc6 100644 --- a/ArduCopter/AP_ExternalControl_Copter.h +++ b/ArduCopter/AP_ExternalControl_Copter.h @@ -14,13 +14,13 @@ class AP_ExternalControl_Copter : 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 Copter 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