Skip to content

Commit

Permalink
suppress warning due to gcc13 bug
Browse files Browse the repository at this point in the history
Signed-off-by: wep21 <[email protected]>
  • Loading branch information
wep21 committed May 25, 2024
1 parent 7590120 commit ee49bf4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions grid_map_core/test/EigenPluginsTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
8 changes: 8 additions & 0 deletions grid_map_cv/include/grid_map_cv/GridMapCvConverter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@
#include <string>
#include <limits>

// 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
{

Expand Down

0 comments on commit ee49bf4

Please sign in to comment.