mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 17:03:33 +08:00
Fix -Werror=format-truncation on GCC 7
Fix formatting Check snprintf return for error AND overflow
This commit is contained in:
committed by
Julian Oes
parent
407b403e68
commit
7929287f73
@@ -684,7 +684,8 @@ GPS::task_main()
|
||||
switch (_mode) {
|
||||
case GPS_DRIVER_MODE_NONE:
|
||||
_mode = GPS_DRIVER_MODE_UBX;
|
||||
/* FALLTHROUGH */
|
||||
|
||||
/* FALLTHROUGH */
|
||||
|
||||
case GPS_DRIVER_MODE_UBX:
|
||||
_helper = new GPSDriverUBX(_interface, &GPS::callback, this, &_report_gps_pos, _p_report_sat_info);
|
||||
|
||||
Reference in New Issue
Block a user