mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 20:28:37 +08:00
gps: workaround spurious GCC 10.1 warning
This is a workaround for a warning in GCC 10.1: src/drivers/gps/devices/src/ubx.cpp:520:8: error: writing 4 bytes into a region of size 0 [-Werror=stringop-overflow=] Also see: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91707
This commit is contained in:
@@ -38,6 +38,7 @@ px4_add_module(
|
|||||||
MAIN gps
|
MAIN gps
|
||||||
COMPILE_FLAGS
|
COMPILE_FLAGS
|
||||||
-Wno-cast-align # TODO: fix and enable
|
-Wno-cast-align # TODO: fix and enable
|
||||||
|
-Wno-stringop-overflow # due to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91707
|
||||||
SRCS
|
SRCS
|
||||||
gps.cpp
|
gps.cpp
|
||||||
devices/src/gps_helper.cpp
|
devices/src/gps_helper.cpp
|
||||||
|
|||||||
Reference in New Issue
Block a user