Hi,

I ran into two more build errors with g++ 4.1.2:


[ 23%] Building CXX object
Core/Code/CMakeFiles/Mitk.dir/Rendering/vtkMitkLevelWindowFilter.cpp.o
cc1plus: warnings being treated as errors
/build/niftk-release/CMakeExternals/Source/MITK/Core/Code/Rendering/vtkMitkLevelWindowFilter.cpp:
In function 'void vtkApplyLookupTableOnRGBA(vtkMitkLevelWindowFilter*,
vtkImageData*, vtkImageData*, int*, vtkFloatingPointType*, T*) [with T =
vtkMitkLevelWindowFilter::ThreadedExecute::VTK_TT]':
/build/niftk-release/CMakeExternals/Source/MITK/Core/Code/Rendering/vtkMitkLevelWindowFilter.cpp:489:
  instantiated from here
/build/niftk-release/CMakeExternals/Source/MITK/Core/Code/Rendering/vtkMitkLevelWindowFilter.cpp:208:
warning: converting to 'unsigned char' from 'double'
/build/niftk-release/CMakeExternals/Source/MITK/Core/Code/Rendering/vtkMitkLevelWindowFilter.cpp:
In function 'void vtkApplyLookupTableOnRGBA(vtkMitkLevelWindowFilter*,
vtkImageData*, vtkImageData*, int*, vtkFloatingPointType*, T*) [with T =
vtkMitkLevelWindowFilter::ThreadedExecute::VTK_TT]':
/build/niftk-release/CMakeExternals/Source/MITK/Core/Code/Rendering/vtkMitkLevelWindowFilter.cpp:489:
  instantiated from here
/build/niftk-release/CMakeExternals/Source/MITK/Core/Code/Rendering/vtkMitkLevelWindowFilter.cpp:208:
warning: converting to 'unsigned char' from
'vtkMitkLevelWindowFilter::ThreadedExecute::VTK_TT'


In vtkMitkLevelWindowFilter:208 there is a static_cast to T, but the
leftvalue is declared as unsigned char. I think, either the declaration
type of the variable should be changed to T, or the static cast to unsigned
char, I don't know which is correct.



[ 23%] Building CXX object
Core/Code/CMakeFiles/Mitk.dir/Rendering/mitkRenderingTestHelper.cpp.o
cc1plus: warnings being treated as errors
/build/niftk-release/CMakeExternals/Source/MITK/Core/Code/Rendering/mitkRenderingTestHelper.cpp:
In member function 'void mitkRenderingTestHelper::SaveAsPNG(std::string)':
/build/niftk-release/CMakeExternals/Source/MITK/Core/Code/Rendering/mitkRenderingTestHelper.cpp:164:
warning: passing 'double' for argument 1 to 'virtual void
vtkRenderLargeImage::SetMagnification(int)'


1.0 should be changed to 1 in the call.

Cheers,
Miklos
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to