From 71d16557fa8b1a00b79e530351c3dea448570362 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 15 Mar 2019 09:30:01 +1100 Subject: [PATCH] AP_Common: Location: add WARN_IF_UNUSED to boolean methods --- libraries/AP_Common/Location.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/AP_Common/Location.h b/libraries/AP_Common/Location.h index f314599431..6cea7b369f 100644 --- a/libraries/AP_Common/Location.h +++ b/libraries/AP_Common/Location.h @@ -42,7 +42,7 @@ public: // get altitude (in cm) in the desired frame // returns false on failure to get altitude in the desired frame which // can only happen if the original frame or desired frame is above-terrain - bool get_alt_cm(AltFrame desired_frame, int32_t &ret_alt_cm) const; + bool get_alt_cm(AltFrame desired_frame, int32_t &ret_alt_cm) const WARN_IF_UNUSED; // get altitude frame AltFrame get_alt_frame() const; @@ -56,8 +56,8 @@ public: // return false on failure to get the vector which can only // happen if the EKF origin has not been set yet // x, y and z are in centimetres - bool get_vector_xy_from_origin_NE(Vector2f &vec_ne) const; - bool get_vector_from_origin_NEU(Vector3f &vec_neu) const; + bool get_vector_xy_from_origin_NE(Vector2f &vec_ne) const WARN_IF_UNUSED; + bool get_vector_from_origin_NEU(Vector3f &vec_neu) const WARN_IF_UNUSED; // return distance in meters between two locations float get_distance(const struct Location &loc2) const; @@ -80,7 +80,7 @@ public: // longitude/latitude points to meters or centimeters float longitude_scale() const; - bool is_zero(void) const; + bool is_zero(void) const WARN_IF_UNUSED; void zero(void);