mirror of https://github.com/ArduPilot/ardupilot
39bd196481
We actually don't want a flexible array in this union, but rather a way to access it byte by byte. This fixes the build for gcc >= 6 In file included from ../../libraries/AP_GPS/AP_GPS.cpp:24:0: ../../libraries/AP_GPS/AP_GPS_ERB.h:93:23: error: flexible array member in union uint8_t bytes[]; ^ compilation terminated due to -Wfatal-errors. In file included from ../../libraries/AP_GPS/AP_GPS_ERB.cpp:22:0: ../../libraries/AP_GPS/AP_GPS_ERB.h:93:23: error: flexible array member in union uint8_t bytes[]; ^ compilation terminated due to -Wfatal-errors. In file included from ../../libraries/AP_GPS/AP_GPS_MTK.cpp:25:0: ../../libraries/AP_GPS/AP_GPS_MTK.h:75:23: error: flexible array member in union uint8_t bytes[]; ^ compilation terminated due to -Wfatal-errors. In file included from ../../libraries/AP_GPS/AP_GPS_MTK19.cpp:26:0: ../../libraries/AP_GPS/AP_GPS_MTK.h:75:23: error: flexible array member in union uint8_t bytes[]; ^ compilation terminated due to -Wfatal-errors. In file included from ../../libraries/AP_GPS/AP_GPS_SIRF.cpp:22:0: ../../libraries/AP_GPS/AP_GPS_SIRF.h:101:23: error: flexible array member in union uint8_t bytes[]; ^ compilation terminated due to -Wfatal-errors. In file included from ../../libraries/AP_GPS/AP_GPS_UBLOX.cpp:23:0: ../../libraries/AP_GPS/AP_GPS_UBLOX.h:387:23: error: flexible array member in union uint8_t bytes[]; ^ compilation terminated due to -Wfatal-errors. |
||
---|---|---|
.. | ||
config | ||
examples | ||
AP_GPS.cpp | ||
AP_GPS.h | ||
AP_GPS_ERB.cpp | ||
AP_GPS_ERB.h | ||
AP_GPS_GSOF.cpp | ||
AP_GPS_GSOF.h | ||
AP_GPS_MTK.cpp | ||
AP_GPS_MTK.h | ||
AP_GPS_MTK19.cpp | ||
AP_GPS_MTK19.h | ||
AP_GPS_MTK_Common.h | ||
AP_GPS_NMEA.cpp | ||
AP_GPS_NMEA.h | ||
AP_GPS_PX4.cpp | ||
AP_GPS_PX4.h | ||
AP_GPS_QURT.cpp | ||
AP_GPS_QURT.h | ||
AP_GPS_SBF.cpp | ||
AP_GPS_SBF.h | ||
AP_GPS_SBP.cpp | ||
AP_GPS_SBP.h | ||
AP_GPS_SIRF.cpp | ||
AP_GPS_SIRF.h | ||
AP_GPS_UBLOX.cpp | ||
AP_GPS_UBLOX.h | ||
GPS_Backend.cpp | ||
GPS_Backend.h | ||
GPS_detect_state.h |