Skip to content

Remove warnings from some of the visit_vtk/full classes.#20770

Draft
biagas wants to merge 12 commits intodevelopfrom
task/biagas/warnings_FromVolume_classes
Draft

Remove warnings from some of the visit_vtk/full classes.#20770
biagas wants to merge 12 commits intodevelopfrom
task/biagas/warnings_FromVolume_classes

Conversation

@biagas
Copy link
Copy Markdown
Contributor

@biagas biagas commented Dec 30, 2025

Description

This was part of a larger warning reduction branch, but when it came to xxxFromVolume classes, I noticed that a large number of static_casts from vtkIdType to size_t would be needed to remove warnings related to using vtkIdType as an array index.

This branch instead changes the use of vtkIdType to size_t to reduce that need.
I also added the classes that utilize xxxFromVolume to the warnings reduction.

Things done:

  • Convert vtkIdType members to size_t, to remove warnings related to using vtkIdType as an array index, and reduce the number of static_cast's to size_t that would need to be used to remove the warnings.

  • Use "" for local header inclusion, <> for TP or outside current library.
    Can help reduce warnings to local code base and reduce warnings from TP headers (with the right compiler options).

  • Replace use of 'NULL' with 'nullptr'.

  • Add copy constructor and assignment operators designated as delete where necessary to remove warnings related to deleted implicitly defined methods.

  • Changed unimplemented copy constructor and assignment operators to be declared as deleted.

  • Modifiied vtkVisItClipper considerably, since the need for the 'Bridge' classes are no longer needed with new versions of VTK and improved API for accessing cells and points information.

  • remove vtkVisItSplitter as it is no longer used

Type of change

  • [ ] Bug fix
  • [ ] New feature
  • [ ] Documentation update
  • Other Warnings cleanup

How Has This Been Tested?

Compiled with all warnings turned on, Linux/Windows with no more warnings for the changed classes.

Checklist:

  • I have commented my code where applicable.~~
  • I have updated the release notes.~~
  • I have made corresponding changes to the documentation.~~
  • I have added debugging support to my changes.~~
  • I have added tests that prove my fix is effective or that my feature works.~~
  • I have confirmed new and existing unit tests pass locally with my changes.~~
  • I have added new baselines for any new tests to the repo.~~
  • I have NOT made any changes to protocol or public interfaces in an RC branch.~~

Convert vtkIdType members to size_t, to remove warnings related to using vtkIdType as an array index, and reduce the number of static_cast's to size_t that would need to be used to remove the warnings.

Use "" for local header inclusion, <> for TP or outside current library.
Can help reduce warnings to local code base and reduce warnings from TP headers (with the right compiler options).

Replace use  of 'NULL' with 'nullptr'.

Add copy constructor and assignment operators designated as `delete` where necessary to remove warnings related to deleted implicitly defined methods.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant