Skip to content

Commit ee49bf4

Browse files
committed
suppress warning due to gcc13 bug
Signed-off-by: wep21 <[email protected]>
1 parent 7590120 commit ee49bf4

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

grid_map_core/test/EigenPluginsTest.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@
1414

1515
#include "grid_map_core/grid_map_core.hpp"
1616

17+
// GCC 13 has false positive warnings around array-bounds.
18+
// Suppress them until this is fixed in upstream gcc. See
19+
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114758 for more details.
20+
#if defined(__GNUC__) && !defined(__clang__)
21+
#pragma GCC diagnostic push
22+
#pragma GCC diagnostic ignored "-Warray-bounds"
23+
#endif
1724

1825
TEST(EigenMatrixBaseAddons, numberOfFinites)
1926
{

grid_map_cv/include/grid_map_cv/GridMapCvConverter.hpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@
2020
#include <string>
2121
#include <limits>
2222

23+
// GCC 13 has false positive warnings around stringop-overflow.
24+
// Suppress them until this is fixed in upstream gcc. See
25+
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114758 for more details.
26+
#if defined(__GNUC__) && !defined(__clang__)
27+
#pragma GCC diagnostic push
28+
#pragma GCC diagnostic ignored "-Wstringop-overflow"
29+
#endif
30+
2331
namespace grid_map
2432
{
2533

0 commit comments

Comments
 (0)