ShapePriors_GCPR16 icon indicating copy to clipboard operation
ShapePriors_GCPR16 copied to clipboard

Hide VTK 7.1.1 Deprecated Warnings

Open davidstutz opened this issue 7 years ago • 0 comments

I came across the problem of having a lot of deprecated warnings of VTK (when using VTK 7.1.1) such as

Generic Warning: In ~/VTK-7.1.1/Common/Core/vtkAOSDataArrayTemplate.txx, line 262
vtkAOSDataArrayTemplate::InsertNextTupleValue was deprecated for VTK 7.1 and will be removed in a future version.  Use vtkGenericDataArray::InsertNextTypedTuple instead.

This caused the visualization to fail as the terminal/console was spammed with these warnings. Just wanted to let people know that a simple workaround is to add

vtkObject::GlobalWarningDisplayOff();

in Visualization::Visualization (in external/viz/src/viz.cpp).

davidstutz avatar Dec 15 '17 12:12 davidstutz