|
4 | 4 | #ifdef _MSC_VER |
5 | 5 | // 4100 - unreferenced formal parameter (occurred e.g. in aligned_allocator::destroy(pointer p)) |
6 | 6 | // 4101 - unreferenced local variable |
7 | | - // 4127 - conditional expression is constant |
8 | 7 | // 4181 - qualifier applied to reference type ignored |
9 | 8 | // 4211 - nonstandard extension used : redefined extern to static |
10 | 9 | // 4244 - 'argument' : conversion from 'type1' to 'type2', possible loss of data |
|
20 | 19 | #ifndef EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS |
21 | 20 | #pragma warning( push ) |
22 | 21 | #endif |
23 | | - #pragma warning( disable : 4100 4101 4127 4181 4211 4244 4273 4324 4503 4512 4522 4700 4714 4717 4800) |
| 22 | + #pragma warning( disable : 4100 4101 4181 4211 4244 4273 4324 4503 4512 4522 4700 4714 4717 4800) |
24 | 23 |
|
25 | 24 | #elif defined __INTEL_COMPILER |
26 | 25 | // 2196 - routine is both "inline" and "noinline" ("noinline" assumed) |
|
42 | 41 | #pragma clang diagnostic push |
43 | 42 | #endif |
44 | 43 | #pragma clang diagnostic ignored "-Wconstant-logical-operand" |
| 44 | + #if __clang_major__ >= 3 && __clang_minor__ >= 5 |
| 45 | + #pragma clang diagnostic ignored "-Wabsolute-value" |
| 46 | + #endif |
45 | 47 |
|
46 | 48 | #elif defined __GNUC__ && __GNUC__>=6 |
47 | 49 |
|
|
53 | 55 | #endif |
54 | 56 |
|
55 | 57 | #if defined __NVCC__ |
| 58 | + #pragma diag_suppress boolean_controlling_expr_is_constant |
56 | 59 | // Disable the "statement is unreachable" message |
57 | 60 | #pragma diag_suppress code_is_unreachable |
58 | 61 | // Disable the "dynamic initialization in unreachable code" message |
|
70 | 73 | #pragma diag_suppress 2671 |
71 | 74 | #pragma diag_suppress 2735 |
72 | 75 | #pragma diag_suppress 2737 |
| 76 | + #pragma diag_suppress 2739 |
73 | 77 | #endif |
74 | 78 |
|
75 | 79 | #endif // not EIGEN_WARNINGS_DISABLED |
0 commit comments