Bugzilla – Attachment 708 Details for
Bug 1221
I get tons of error since my distribution upgraded to GCC 6.1.1
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Forgot Password
Login:
[x]
This bugzilla service is closed. All entries have been migrated to
https://gitlab.com/libeigen/eigen
[patch]
Disable -Wignored-attributes
disable_ignored_attribute_warning.diff (text/plain), 2.17 KB, created by
Gael Guennebaud
on 2016-05-18 13:51:04 UTC
(
hide
)
Description:
Disable -Wignored-attributes
Filename:
MIME Type:
Creator:
Gael Guennebaud
Created:
2016-05-18 13:51:04 UTC
Size:
2.17 KB
patch
obsolete
>diff --git a/Eigen/src/Core/util/DisableStupidWarnings.h b/Eigen/src/Core/util/DisableStupidWarnings.h >--- a/Eigen/src/Core/util/DisableStupidWarnings.h >+++ b/Eigen/src/Core/util/DisableStupidWarnings.h >@@ -36,16 +36,24 @@ > > #elif defined __clang__ > // -Wconstant-logical-operand - warning: use of logical && with constant operand; switch to bitwise & or remove constant > // this is really a stupid warning as it warns on compile-time expressions involving enums > #ifndef EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS > #pragma clang diagnostic push > #endif > #pragma clang diagnostic ignored "-Wconstant-logical-operand" >+ >+#elif defined __GNUC__ && __GNUC__>=6 >+ >+ #ifndef EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS >+ #pragma GCC diagnostic push >+ #endif >+ #pragma GCC diagnostic ignored "-Wignored-attributes" >+ > #endif > > #if defined __NVCC__ > // Disable the "statement is unreachable" message > #pragma diag_suppress code_is_unreachable > // Disable the "dynamic initialization in unreachable code" message > #pragma diag_suppress initialization_not_reachable > // Disable the "calling a __host__ function from a __host__ __device__ function is not allowed" messages (yes, there are 4 of them) >diff --git a/Eigen/src/Core/util/ReenableStupidWarnings.h b/Eigen/src/Core/util/ReenableStupidWarnings.h >--- a/Eigen/src/Core/util/ReenableStupidWarnings.h >+++ b/Eigen/src/Core/util/ReenableStupidWarnings.h >@@ -3,22 +3,25 @@ > > #ifndef EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS > #ifdef _MSC_VER > #pragma warning( pop ) > #elif defined __INTEL_COMPILER > #pragma warning pop > #elif defined __clang__ > #pragma clang diagnostic pop >+ #elif defined __GNUC__ && __GNUC__>=6 >+ #pragma GCC diagnostic pop > #endif > > #if defined __NVCC__ > // Don't reenable the diagnostic messages, as it turns out these messages need > // to be disabled at the point of the template instantiation (i.e the user code) > // otherwise they'll be triggeredby nvcc. > // #pragma diag_default code_is_unreachable > // #pragma diag_default initialization_not_reachable > // #pragma diag_default 2651 > // #pragma diag_default 2653 > #endif >+ > #endif > > #endif // EIGEN_WARNINGS_DISABLED
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1221
: 708