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. |
||
---|---|---|
.. | ||
APM2_2560_bootloader | ||
APM_radio_test | ||
ArduPilotMega_demo | ||
ArdupilotMegaPlanner | ||
ardupilotwaf | ||
ArduPPM | ||
autotest | ||
CHDK-Scripts | ||
CodeStyle | ||
CPUInfo | ||
Failsafe | ||
FlightGear | ||
Frame_params | ||
GIT_Test | ||
gittools | ||
Hello | ||
Linux_HAL_Essentials | ||
LogAnalyzer | ||
mavproxy_modules | ||
PPM_decoding | ||
PXF | ||
Replay | ||
scripts | ||
SerialProxy | ||
vagrant | ||
Xplane | ||
PrintVersion.py |