Build fails with clang-6
The FreeBSD port (version vtk6-6.2.0) fails with these errors on FreeBSD 12:
/wrkdirs/usr/ports/math/vtk6/work/VTK-6.2.0/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx:389:20: error: static_cast from 'nullptr_t' to 'Window' (aka 'unsigned long') is not allowed
this->ParentId = static_cast<Window>(NULL);
^~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/math/vtk6/work/VTK-6.2.0/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx:397:20: error: static_cast from 'nullptr_t' to 'Window' (aka 'unsigned long') is not allowed
this->WindowId = static_cast<Window>(NULL);
^~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/math/vtk6/work/VTK-6.2.0/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx:398:24: error: static_cast from 'nullptr_t' to 'Window' (aka 'unsigned long') is not allowed
this->NextWindowId = static_cast<Window>(NULL);
^~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/math/vtk6/work/VTK-6.2.0/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx:779:22: error: static_cast from 'nullptr_t' to 'Window' (aka 'unsigned long') is not allowed
this->WindowId = static_cast<Window>(NULL);
^~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/math/vtk6/work/VTK-6.2.0/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx:1171:24: error: static_cast from 'nullptr_t' to 'Window' (aka 'unsigned long') is not allowed
this->NextWindowId = static_cast<Window>(NULL);
^~~~~~~~~~~~~~~~~~~~~~~~~
Edited by yurivict