From 756d1a3fffd2f900d5e6099d70a363518cd7c8b4 Mon Sep 17 00:00:00 2001 From: rmackay9 Date: Sat, 18 Aug 2012 12:51:32 +0900 Subject: [PATCH] AP_Limits: change order of initialisation of class variables to remove compiler warnings. --- libraries/AP_Limits/AP_Limit_Geofence.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/AP_Limits/AP_Limit_Geofence.cpp b/libraries/AP_Limits/AP_Limit_Geofence.cpp index 8be11cd3e0..c939f80961 100644 --- a/libraries/AP_Limits/AP_Limit_Geofence.cpp +++ b/libraries/AP_Limits/AP_Limit_Geofence.cpp @@ -48,13 +48,13 @@ const AP_Param::GroupInfo AP_Limit_Geofence::var_info[] PROGMEM = { AP_Limit_Geofence::AP_Limit_Geofence(uint32_t efs, uint8_t f_wp_s, uint8_t max_fp, GPS *&gps, struct Location *h_loc, struct Location *c_loc) : AP_Limit_Module(AP_LIMITS_GEOFENCE), + _gps(gps), + _current_loc(c_loc), + _home(h_loc), _eeprom_fence_start(efs), _fence_wp_size(f_wp_s), _max_fence_points(max_fp), - _boundary_uptodate(false), - _current_loc(c_loc), - _home(h_loc), - _gps(gps) + _boundary_uptodate(false) { update_boundary(); }