Skip to content

Commit 4319dfe

Browse files
committed
Disable warning coming from Eigen with IntelLLVM
1 parent f988397 commit 4319dfe

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

src/atlas/interpolation/method/sphericalvector/SparseMatrix.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
ATLAS_SUPPRESS_WARNINGS_PUSH
1717
ATLAS_SUPPRESS_WARNINGS_INTEGER_SIGN_CHANGE
1818
ATLAS_SUPPRESS_WARNINGS_CODE_IS_UNREACHABLE
19+
ATLAS_SUPPRESS_WARNINGS_UNUSED_BUT_SET_VARIABLE
1920
#include <Eigen/Sparse>
2021
ATLAS_SUPPRESS_WARNINGS_POP
2122
#endif

src/atlas/library/defines.h.in

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@
6262
# define ATLAS_SUPPRESS_WARNINGS_POP _Pragma( "diag pop" )
6363
# define ATLAS_SUPPRESS_WARNINGS_INTEGER_SIGN_CHANGE _Pragma( "diag_suppress integer_sign_change" )
6464
# define ATLAS_SUPPRESS_WARNINGS_CODE_IS_UNREACHABLE _Pragma( "diag_suppress code_is_unreachable" )
65+
#elif defined(__INTEL_LLVM_COMPILER)
66+
# define ATLAS_SUPPRESS_WARNINGS_PUSH _Pragma( "clang diagnostic push")
67+
# define ATLAS_SUPPRESS_WARNINGS_POP _Pragma( "clang diagnostic pop" )
68+
# define ATLAS_SUPPRESS_WARNINGS_UNUSED_BUT_SET_VARIABLE _Pragma( "clang diagnostic ignored \"-Wunused-but-set-variable\"")
6569
#elif defined(__INTEL_COMPILER)
6670
# define ATLAS_SUPPRESS_WARNINGS_PUSH _Pragma( "warning push" )
6771
# define ATLAS_SUPPRESS_WARNINGS_POP _Pragma( "warning pop" )
@@ -90,5 +94,8 @@
9094
#if !defined(ATLAS_SUPPRESS_WARNINGS_TEMPLATE_ID_CDTOR)
9195
# define ATLAS_SUPPRESS_WARNINGS_TEMPLATE_ID_CDTOR
9296
#endif
97+
#if !defined(ATLAS_SUPPRESS_WARNINGS_UNUSED_BUT_SET_VARIABLE)
98+
# define ATLAS_SUPPRESS_WARNINGS_UNUSED_BUT_SET_VARIABLE
99+
#endif
93100

94101
#endif

src/atlas/linalg/sparse/MakeSparseMatrixStorageEigen.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
ATLAS_SUPPRESS_WARNINGS_PUSH
2121
ATLAS_SUPPRESS_WARNINGS_INTEGER_SIGN_CHANGE
2222
ATLAS_SUPPRESS_WARNINGS_CODE_IS_UNREACHABLE
23+
ATLAS_SUPPRESS_WARNINGS_UNUSED_BUT_SET_VARIABLE
2324
#include <Eigen/Sparse>
2425
ATLAS_SUPPRESS_WARNINGS_POP
2526
#endif

0 commit comments

Comments
 (0)