diff options
author | Gael Guennebaud <g.gael@free.fr> | 2012-02-03 23:16:11 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2012-02-03 23:16:11 +0100 |
commit | a594d7ffd7700e9c7cb11fe21a96c0164f524742 (patch) | |
tree | 587653517aaf7096e1643d88df79a65160e930e5 /Eigen | |
parent | ad4aa7873f5ba631a72bb25c41254a26b01ee513 (diff) |
stop disabling this legitimate warning, recall that in the following the const on FooRef is really meaningless:
typedef Foo& FooRef;
const FooRef foo;
Diffstat (limited to 'Eigen')
-rw-r--r-- | Eigen/src/Core/util/DisableStupidWarnings.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Eigen/src/Core/util/DisableStupidWarnings.h b/Eigen/src/Core/util/DisableStupidWarnings.h index 00730524b..6a0bf0629 100644 --- a/Eigen/src/Core/util/DisableStupidWarnings.h +++ b/Eigen/src/Core/util/DisableStupidWarnings.h @@ -21,15 +21,13 @@ #elif defined __INTEL_COMPILER // 2196 - routine is both "inline" and "noinline" ("noinline" assumed) // ICC 12 generates this warning even without any inline keyword, when defining class methods 'inline' i.e. inside of class body - // 2536 - type qualifiers are meaningless here - // ICC 12 generates this warning when a function return type is const qualified, even if that type is a template-parameter-dependent // typedef that may be a reference type. // 279 - controlling expression is constant // ICC 12 generates this warning on assert(constant_expression_depending_on_template_params) and frankly this is a legitimate use case. #ifndef EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS #pragma warning push #endif - #pragma warning disable 2196 2536 279 + #pragma warning disable 2196 279 #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 |