Skip to content

Commit d22546e

Browse files
committed
guard warning supression with a gcc version
1 parent 8b26c1e commit d22546e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gtsam/linear/JacobianFactor-inl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
#include <gtsam/linear/linearExceptions.h>
2222

23-
#if defined(__GNUC__) && !defined(__clang__)
23+
#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ >= 13
2424
#pragma GCC diagnostic warning "-Wstringop-overread"
2525
#endif
2626

0 commit comments

Comments
 (0)