mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
32 lines
1.1 KiB
Diff
32 lines
1.1 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Tyler Veness <calcmogul@gmail.com>
|
|
Date: Wed, 18 May 2022 09:14:24 -0700
|
|
Subject: [PATCH 1/3] Disable warnings
|
|
|
|
---
|
|
Eigen/src/Core/util/DisableStupidWarnings.h | 11 +++++++++++
|
|
1 file changed, 11 insertions(+)
|
|
|
|
diff --git a/Eigen/src/Core/util/DisableStupidWarnings.h b/Eigen/src/Core/util/DisableStupidWarnings.h
|
|
index fe0cfec0bc2461ac44abca8f3d05b468d3c60fd9..9a630e4ae692aee0277d60b3083c968d087920dd 100755
|
|
--- a/Eigen/src/Core/util/DisableStupidWarnings.h
|
|
+++ b/Eigen/src/Core/util/DisableStupidWarnings.h
|
|
@@ -71,6 +71,17 @@
|
|
// See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89325
|
|
#pragma GCC diagnostic ignored "-Wattributes"
|
|
#endif
|
|
+ #if __GNUC__>=8
|
|
+ #pragma GCC diagnostic ignored "-Wclass-memaccess"
|
|
+ #endif
|
|
+ #if __GNUC__>=11
|
|
+ // This warning is a false positive
|
|
+ #pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
|
|
+ #endif
|
|
+ #if __GNUC__>=12
|
|
+ // This warning is a false positive
|
|
+ #pragma GCC diagnostic ignored "-Warray-bounds"
|
|
+ #endif
|
|
#endif
|
|
|
|
#if defined __NVCC__
|