So when I want to build the code with ./waf build --target examples/INS_generic --upload
I got error in libraries/AP_ADSB_AP_ADSB.cpp in line 594.
It says:
error: ‘snprintf’ output may be truncated before the last format character [-Werror=format-truncation=]
uint8_t AP_ADSB::get_encoded_callsign_null_char()
^~~~~~~
compilation terminated due to -Wfatal-errors.
cc1plus: all warnings being treated as errors
I assume that maybe the problem is in px4 fw_io because last build is here and after this build failed.
[462/470] CMake Build px4 fw_io
ninja: no work to do.
…/…/libraries/AP_ADSB/AP_ADSB.cpp: In member function ‘uint8_t AP_ADSB::get_encoded_callsign_null_char()’:
I stopped here and don’t know how to fix this problem…
Maybe someone had the same or similar problem in the past???