[Trilinos-Users] [12.2.1] Amesos2 suspicious waring in AMESOS2_SLUD_GET_EQUED
Denis Davydov
davydden at gmail.com
Sun Sep 6 04:12:15 EDT 2015
Dear developers,
I have the following warning on Clang (AppleClang 6.1.0.6020053) which looks quite suspicious:
In file included from /usr/local/lib/cmake/Pike/../../../include/Amesos2_Superludist_decl.hpp:58:
/usr/local/lib/cmake/Pike/../../../include/Amesos2_Superludist_FunctionMap.hpp:285:17: warning: comparison of constant 67 with expression of type 'SLUD::DiagScale_t' is always false [-Wtautological-constant-out-of-range-compare]
char eq = AMESOS2_SLUD_GET_EQUED(*equed);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/lib/cmake/Pike/../../../include/Amesos2_Superludist_FunctionMap.hpp:71:98: note: expanded from macro 'AMESOS2_SLUD_GET_EQUED'
#define AMESOS2_SLUD_GET_EQUED(ds) (((ds)==SLUD::NOEQUIL) ? 'N' : ((ds)==SLUD::ROW) ? 'R' : ((ds)=='C') ? SLUD::COL : SLUD::BOTH)
~~~~^ ~~~
Could you please check if the marco makes sense on all compilers and still holds for Superlu_Dist 4.1?
Kind regards,
Denis
More information about the Trilinos-Users
mailing list