From 245149ded4717b999c4393238c27a51bdde3e038 Mon Sep 17 00:00:00 2001 From: Ryan Friedman Date: Mon, 30 Oct 2023 18:18:30 -0600 Subject: [PATCH] AP_ExternalControl: Add WARN_IF_UNUSED Signed-off-by: Ryan Friedman --- libraries/AP_ExternalControl/AP_ExternalControl.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libraries/AP_ExternalControl/AP_ExternalControl.h b/libraries/AP_ExternalControl/AP_ExternalControl.h index 7c3d7b7e35..b72190d9c4 100644 --- a/libraries/AP_ExternalControl/AP_ExternalControl.h +++ b/libraries/AP_ExternalControl/AP_ExternalControl.h @@ -20,13 +20,11 @@ public: Velocity is in earth frame, NED [m/s]. Yaw is in earth frame, NED [rad/s]. */ - virtual bool set_linear_velocity_and_yaw_rate(const Vector3f &linear_velocity, float yaw_rate_rads) - { + virtual bool set_linear_velocity_and_yaw_rate(const Vector3f &linear_velocity, float yaw_rate_rads) WARN_IF_UNUSED { return false; } - static AP_ExternalControl *get_singleton(void) - { + static AP_ExternalControl *get_singleton(void) WARN_IF_UNUSED { return singleton; }