Compiler warnings for Amesos2_Superludist_FunctionMap.hpp
Created by: BarrySmith
/Users/petsc/petsc.clone-4/arch-osx-xsdk-opt/bin/mpicxx -o ex63.o -c -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -g -O3 -I/Users/petsc/petsc.clone-4/include -I/Users/petsc/petsc.clone-4/arch-osx-xsdk-opt/include pwd
/ex63.cxx
In file included from /Users/petsc/petsc.clone-4/src/ksp/ksp/examples/tutorials/ex63.cxx:68:
In file included from /Users/petsc/petsc.clone-4/arch-osx-xsdk-opt/include/Amesos2.hpp:45:
In file included from /Users/petsc/petsc.clone-4/arch-osx-xsdk-opt/include/Amesos2_Factory.hpp:102:
In file included from /Users/petsc/petsc.clone-4/arch-osx-xsdk-opt/include/Amesos2_Superludist.hpp:47:
In file included from /Users/petsc/petsc.clone-4/arch-osx-xsdk-opt/include/Amesos2_Superludist_decl.hpp:58:
/Users/petsc/petsc.clone-4/arch-osx-xsdk-opt/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);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/petsc/petsc.clone-4/arch-osx-xsdk-opt/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)
~~~~^ ~~~
/Users/petsc/petsc.clone-4/arch-osx-xsdk-opt/include/Amesos2_Superludist_FunctionMap.hpp:306: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); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/petsc/petsc.clone-4/arch-osx-xsdk-opt/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)
~~~~^ ~~~
2 warnings generated.