Browse Source

AP_GPS: correct compiler warnings

In file included from ../../libraries/AP_GPS/AP_GPS_SBF.cpp:22:
../../libraries/AP_GPS/AP_GPS_SBF.h:75:14: warning: private field
'last_injected_data_ms' is not used [-Wunused-private-field]
    uint32_t last_injected_data_ms = 0;
             ^
../../libraries/AP_GPS/AP_GPS_SBF.h:210:7: warning: private field
'RxError_bits' is not used [-Wunused-private-field]
    } RxError_bits;
mission-4.1.18
Peter Barker 7 years ago committed by Randy Mackay
parent
commit
816045c1ab
  1. 3
      libraries/AP_GPS/AP_GPS_SBF.h

3
libraries/AP_GPS/AP_GPS_SBF.h

@ -72,7 +72,6 @@ private: @@ -72,7 +72,6 @@ private:
const char* _port_enable = "\nSSSSSSSSSS\n";
uint32_t crc_error_counter = 0;
uint32_t last_injected_data_ms = 0;
uint32_t RxState;
uint32_t RxError;
@ -207,5 +206,5 @@ private: @@ -207,5 +206,5 @@ private:
CPUOVERLOAD = (1 << 9),
INVALIDCONFIG = (1 << 10),
OUTOFGEOFENCE = (1 << 11),
} RxError_bits;
};
};

Loading…
Cancel
Save