mirror of https://github.com/ArduPilot/ardupilot
cb0ffc0e07
Add noreturn attribute to field_not_found(). This function always call abort() if the field was not found. The compiler may not know about it and may think some variables are used uninitialized: ../../Tools/Replay/LR_MsgHandler.cpp: In member function ‘void LR_MsgHandler_GPA_Base::update_from_msg_gpa(uint8_t, uint8_t*)’: ../../Tools/Replay/LR_MsgHandler.cpp:212:24: error: ‘sacc’ may be used uninitialized in this function [-Werror=maybe-uninitialized] gps.setHIL_Accuracy(gps_offset, vdop*0.01f, hacc*0.01f, vacc*0.01f, sacc*0.01f, have_vertical_velocity, sample_ms); ^ Instead of just initializing the variable (which is pointless in this case), teach the compiler that this function never returns so require_field() works properly. |
||
---|---|---|
.. | ||
CheckLogs.py | ||
DataFlashFileReader.cpp | ||
DataFlashFileReader.h | ||
LR_MsgHandler.cpp | ||
LR_MsgHandler.h | ||
LogReader.cpp | ||
LogReader.h | ||
Makefile | ||
MsgHandler.cpp | ||
MsgHandler.h | ||
Parameters.h | ||
Replay.cpp | ||
VehicleType.h | ||
make.inc | ||
plotit.sh | ||
wscript |