2022-10-14 23:36:47 -07:00
|
|
|
From 3bfc3d1e3cbc9d7032446cc4aa6246d1c7750901 Mon Sep 17 00:00:00 2001
|
2022-05-18 12:22:10 -07:00
|
|
|
From: Tyler Veness <calcmogul@gmail.com>
|
|
|
|
|
Date: Wed, 18 May 2022 09:14:24 -0700
|
|
|
|
|
Subject: [PATCH] Disable warnings
|
|
|
|
|
|
|
|
|
|
---
|
2022-10-14 23:36:47 -07:00
|
|
|
Eigen/src/Core/util/DisableStupidWarnings.h | 11 +++++++++++
|
|
|
|
|
1 file changed, 11 insertions(+)
|
2022-05-18 12:22:10 -07:00
|
|
|
|
|
|
|
|
diff --git a/Eigen/src/Core/util/DisableStupidWarnings.h b/Eigen/src/Core/util/DisableStupidWarnings.h
|
2022-10-14 23:36:47 -07:00
|
|
|
index fe0cfec..d973255 100755
|
2022-05-18 12:22:10 -07:00
|
|
|
--- a/Eigen/src/Core/util/DisableStupidWarnings.h
|
|
|
|
|
+++ b/Eigen/src/Core/util/DisableStupidWarnings.h
|
2022-10-14 23:36:47 -07:00
|
|
|
@@ -71,6 +71,17 @@
|
2022-05-18 12:22:10 -07:00
|
|
|
// See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89325
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wattributes"
|
|
|
|
|
#endif
|
2022-10-14 23:36:47 -07:00
|
|
|
+ #if __GNUC__>=8
|
|
|
|
|
+ #pragma GCC diagnostic ignored "-Wclass-memaccess"
|
|
|
|
|
+ #endif
|
2022-05-19 18:50:29 -07:00
|
|
|
+ #if __GNUC__>=11
|
2022-05-18 12:22:10 -07:00
|
|
|
+ // 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__
|