guard warning supression with a gcc version

release/4.3a0
jmackay2 2025-02-06 21:44:52 -05:00
parent 8b26c1e70b
commit d22546edad
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@
#include <gtsam/linear/linearExceptions.h> #include <gtsam/linear/linearExceptions.h>
#if defined(__GNUC__) && !defined(__clang__) #if defined(__GNUC__) && !defined(__clang__) && __GNUC__ >= 13
#pragma GCC diagnostic warning "-Wstringop-overread" #pragma GCC diagnostic warning "-Wstringop-overread"
#endif #endif