From ee49bf4786355d3ad1b9e8f63db304f9e8755037 Mon Sep 17 00:00:00 2001 From: wep21 Date: Sat, 25 May 2024 11:12:21 +0900 Subject: [PATCH] suppress warning due to gcc13 bug Signed-off-by: wep21 --- grid_map_core/test/EigenPluginsTest.cpp | 7 +++++++ grid_map_cv/include/grid_map_cv/GridMapCvConverter.hpp | 8 ++++++++ 2 files changed, 15 insertions(+) diff --git a/grid_map_core/test/EigenPluginsTest.cpp b/grid_map_core/test/EigenPluginsTest.cpp index 4c902b667..e168c5910 100644 --- a/grid_map_core/test/EigenPluginsTest.cpp +++ b/grid_map_core/test/EigenPluginsTest.cpp @@ -14,6 +14,13 @@ #include "grid_map_core/grid_map_core.hpp" +// GCC 13 has false positive warnings around array-bounds. +// Suppress them until this is fixed in upstream gcc. See +// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114758 for more details. +#if defined(__GNUC__) && !defined(__clang__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Warray-bounds" +#endif TEST(EigenMatrixBaseAddons, numberOfFinites) { diff --git a/grid_map_cv/include/grid_map_cv/GridMapCvConverter.hpp b/grid_map_cv/include/grid_map_cv/GridMapCvConverter.hpp index 2538b8258..233c28a0d 100644 --- a/grid_map_cv/include/grid_map_cv/GridMapCvConverter.hpp +++ b/grid_map_cv/include/grid_map_cv/GridMapCvConverter.hpp @@ -20,6 +20,14 @@ #include #include +// GCC 13 has false positive warnings around stringop-overflow. +// Suppress them until this is fixed in upstream gcc. See +// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114758 for more details. +#if defined(__GNUC__) && !defined(__clang__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstringop-overflow" +#endif + namespace grid_map {