<div dir="ltr"><div>Hi guys. I compiled VTK8 with no problem on Mac OS 10.12. However, when I try to compile one of my codes that was working on VTK7, I got the following error.</div><div><br></div><div>Any advice?</div><div><br></div><div><div>[ 25%] Building CXX object CMakeFiles/MitoGraph.dir/MitoGraph.cxx.o</div><div>/Users/mviana/Desktop/MitoGraph/MitoGraph.cxx:576:19: warning: 'register' storage class specifier is deprecated and</div><div>      incompatible with C++1z [-Wdeprecated-register]</div><div>        vtkIdType register id;</div><div>                  ^~~~~~~~~</div><div>/Users/mviana/Desktop/MitoGraph/MitoGraph.cxx:1129:9: warning: 'register' storage class specifier is deprecated and</div><div>      incompatible with C++1z [-Wdeprecated-register]</div><div>    int register j, i;</div><div>        ^~~~~~~~~</div><div>/Users/mviana/Desktop/MitoGraph/MitoGraph.cxx:1129:9: warning: 'register' storage class specifier is deprecated and</div><div>      incompatible with C++1z [-Wdeprecated-register]</div><div>    int register j, i;</div><div>        ^~~~~~~~~</div><div>/Users/mviana/Desktop/MitoGraph/MitoGraph.cxx:1339:41: error: non-constant-expression cannot be narrowed from type</div><div>      'long' to 'double' in initializer list [-Wc++11-narrowing]</div><div>    attribute newAtt_1 = {"#End points",ne};</div><div>                                        ^~</div><div>/Users/mviana/Desktop/MitoGraph/MitoGraph.cxx:1339:41: note: insert an explicit cast to silence this issue</div><div>    attribute newAtt_1 = {"#End points",ne};</div><div>                                        ^~</div><div>                                        static_cast<double>( )</div><div>/Users/mviana/Desktop/MitoGraph/MitoGraph.cxx:1341:43: error: non-constant-expression cannot be narrowed from type</div><div>      'long' to 'double' in initializer list [-Wc++11-narrowing]</div><div>    attribute newAtt_2 = {"#Bifurcations",nb};</div><div>                                          ^~</div><div>/Users/mviana/Desktop/MitoGraph/MitoGraph.cxx:1341:43: note: insert an explicit cast to silence this issue</div><div>    attribute newAtt_2 = {"#Bifurcations",nb};</div><div>                                          ^~</div><div>                                          static_cast<double>( )</div></div><div><br></div><div><br></div><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div><div><font color="#999999" size="2" face="arial, helvetica, sans-serif"><span style="line-height:16px">Matheus Viana</span></font></div><div><font color="#999999" size="2" face="arial, helvetica, sans-serif"><span style="line-height:16px">IBM Research | Brazil</span></font></div></div></div></div></div></div></div></div>
</div>