[wpimath] Extend Eigen warning suppression to GCC 12 (#4251)

It originally only applied to GCC 11. The CMake build passed without
this change, but not the Gradle build.
This commit is contained in:
Tyler Veness
2022-05-19 18:50:29 -07:00
committed by GitHub
parent 0d9956273c
commit fff4d1f44e
2 changed files with 4 additions and 4 deletions

View File

@@ -71,7 +71,7 @@
// See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89325
#pragma GCC diagnostic ignored "-Wattributes"
#endif
#if __GNUC__==11
#if __GNUC__>=11
// This warning is a false positive
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif