<div dir="ltr"><div><font face="courier new, monospace">/home/jed/petsc/src/mat/partition/impls/chaco/chaco.c:484:13: warning: comparison of constant -2 with expression of type 'MPChacoEigenType' is always false [-Wtautological-c</font></div>
<div><font face="courier new, monospace">onstant-out-of-range-compare]</font></div><div><font face="courier new, monospace"> if (method==PETSC_DEFAULT) chaco->eigen_method = MP_CHACO_LANCZOS;<br></font><div><font face="courier new, monospace"> ~~~~~~^ ~~~~~~~~~~~~~</font></div>
<div><br></div>Meanwhile, we have</div><div><br></div><div>typedef enum { MP_CHACO_LANCZOS=0,MP_CHACO_RQI=1 } MPChacoEigenType;<br></div><div><br></div><div style>Either we add a typed MP_CHACO_DEFAULT to the enum or we get rid of the concept of PETSC_DEFAULT in that context. Which is it?</div>
</div>