diff --git a/libraries/AP_Vehicle/AP_Vehicle.h b/libraries/AP_Vehicle/AP_Vehicle.h index 725b1a2e11df2..0ea6a802ca665 100644 --- a/libraries/AP_Vehicle/AP_Vehicle.h +++ b/libraries/AP_Vehicle/AP_Vehicle.h @@ -290,8 +290,8 @@ class AP_Vehicle : public AP_HAL::HAL::Callbacks { virtual bool get_rate_ef_targets(Vector3f& rate_ef_targets) const { return false; } #if AP_AHRS_ENABLED - virtual bool set_home_to_current_location(bool lock) WARN_IF_UNUSED = 0; - virtual bool set_home(const Location& loc, bool lock) WARN_IF_UNUSED = 0; + virtual bool set_home_to_current_location(bool lock) WARN_IF_UNUSED { return false; } + virtual bool set_home(const Location& loc, bool lock) WARN_IF_UNUSED { return false; } #endif protected: