From f2e2ac5deff94f57ce471ab07a75acc21746578f Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Tue, 19 May 2020 11:12:47 +0200 Subject: [PATCH] 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 --- src/drivers/gps/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/drivers/gps/CMakeLists.txt b/src/drivers/gps/CMakeLists.txt index f07fac969c..065c29e6a6 100644 --- a/src/drivers/gps/CMakeLists.txt +++ b/src/drivers/gps/CMakeLists.txt @@ -38,6 +38,7 @@ px4_add_module( MAIN gps COMPILE_FLAGS -Wno-cast-align # TODO: fix and enable + -Wno-stringop-overflow # due to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91707 SRCS gps.cpp devices/src/gps_helper.cpp