[vtkusers] 'register' storage class specifier is deprecated
Matheus Viana
vianamp at gmail.com
Fri Sep 1 17:52:17 EDT 2017
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.
Any advice?
[ 25%] Building CXX object CMakeFiles/MitoGraph.dir/MitoGraph.cxx.o
/Users/mviana/Desktop/MitoGraph/MitoGraph.cxx:576:19: warning: 'register'
storage class specifier is deprecated and
incompatible with C++1z [-Wdeprecated-register]
vtkIdType register id;
^~~~~~~~~
/Users/mviana/Desktop/MitoGraph/MitoGraph.cxx:1129:9: warning: 'register'
storage class specifier is deprecated and
incompatible with C++1z [-Wdeprecated-register]
int register j, i;
^~~~~~~~~
/Users/mviana/Desktop/MitoGraph/MitoGraph.cxx:1129:9: warning: 'register'
storage class specifier is deprecated and
incompatible with C++1z [-Wdeprecated-register]
int register j, i;
^~~~~~~~~
/Users/mviana/Desktop/MitoGraph/MitoGraph.cxx:1339:41: error:
non-constant-expression cannot be narrowed from type
'long' to 'double' in initializer list [-Wc++11-narrowing]
attribute newAtt_1 = {"#End points",ne};
^~
/Users/mviana/Desktop/MitoGraph/MitoGraph.cxx:1339:41: note: insert an
explicit cast to silence this issue
attribute newAtt_1 = {"#End points",ne};
^~
static_cast<double>( )
/Users/mviana/Desktop/MitoGraph/MitoGraph.cxx:1341:43: error:
non-constant-expression cannot be narrowed from type
'long' to 'double' in initializer list [-Wc++11-narrowing]
attribute newAtt_2 = {"#Bifurcations",nb};
^~
/Users/mviana/Desktop/MitoGraph/MitoGraph.cxx:1341:43: note: insert an
explicit cast to silence this issue
attribute newAtt_2 = {"#Bifurcations",nb};
^~
static_cast<double>( )
Matheus Viana
IBM Research | Brazil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170901/4c7c1055/attachment.html>
More information about the vtkusers
mailing list