Skip to content

Hide VTK 7.1.1 Deprecated Warnings #1

@davidstutz

Description

@davidstutz

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions