From 34ae673058b01bf9165bf91e6bb7d51b38e78042 Mon Sep 17 00:00:00 2001 From: rmackay9 Date: Wed, 7 Nov 2012 23:29:25 +0900 Subject: [PATCH] AP_Mount: resolve compiler warning about unused mount_open variable --- libraries/AP_Mount/AP_Mount.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AP_Mount/AP_Mount.cpp b/libraries/AP_Mount/AP_Mount.cpp index 4df07d1563..af4c91a023 100644 --- a/libraries/AP_Mount/AP_Mount.cpp +++ b/libraries/AP_Mount/AP_Mount.cpp @@ -253,7 +253,9 @@ void AP_Mount::set_GPS_target_location(Location targetGPSLocation) /// This one should be called periodically void AP_Mount::update_mount_position() { +#if MNT_RETRACT_OPTION == ENABLED static bool mount_open = 0; // 0 is closed +#endif switch((enum MAV_MOUNT_MODE)_mount_mode.get()) {