[Paraview-developers] Problem in the ParaView code
Andy Cedilnik
andy.cedilnik at kitware.com
Sat Sep 10 13:38:39 EDT 2005
Hi All,
I found several places in the code where the following pattern repeats:
int tmp;
for ( ... )
{
x = (tmp = fun(y)) * tmp;
}
I guess this really should be:
for ( ... )
{
tmp = fun(y);
x = tmp * tmp;
}
or
for ( ... )
{
x = fun(y) * tmp;
tmp = fun(y);
}
Anyway, looks like gcc 4.0 does not understand that code either, so
please make sure not to use this kind of construct.
Also, could somebody fix this code in the following files:
ParaView/Servers/Filters/vtkDataSetSubdivisionAlgorithm.cxx
*ParaView/Servers/Filters/vtkStreamingTessellator.cxx
Thank you.
*
--
Andy Cedilnik
Kitware Inc.
More information about the Paraview-developers
mailing list