1 # Inherit VTK's exclusions. We don't have to redefine them in this file anymore. 2 set(paraview_use_external_vtk
"OFF")
3 if (NOT paraview_use_external_vtk)
4 include(
"${CMAKE_CURRENT_LIST_DIR}/VTK/CTestCustom.cmake")
7 # Regular expression for warning exception during build process 8 list(APPEND CTEST_CUSTOM_WARNING_EXCEPTION
9 # Ignore `getenv`
"deprecation" with MSVC.
10 "vtknvindex_utilities.h.*: warning C4996: 'getenv'" 12 # Ignore protobuf-generated source file warnings.
15 # ignore warning from string_fortified.h inclusion
18 # Unreachable code in xutility causes C4702 warnings in MSVC.
19 "xutility.*unreachable code" 21 # exclude warnings from dmfile.cxx
24 # exclude warnings from unreference NewInstance
function 25 ".*NewInstance.*was declared but never referenced" 27 # Intel compiler warning about routines being both
inline and noinline
28 "warning #2196.* routine is both" 30 # compiler optimizations may sometimes lead to
this warning
31 "assuming signed overflow does not occur when assuming that" 33 # Visual Studio STL warnings.
34 "VC.Tools.*include.*: warning" 36 # Doxygen warning exclusions
37 "<unknown>:1: warning: no matching .* member found for" 38 "vtkPVMessage.pb.h:.*: warning: no.*matching class member found for" 39 "paraview/tpl/cinemasci/viewers/readme.md:10: warning: unable to resolve reference to `doc/readme_view.md' for" 40 "warning: unable to resolve reference to `https:' for \ref command" 41 "md:.*: warning:" # Disable all warnings in .md files
42 "warning: Found ';' while parsing initializer list! \\(doxygen could be confused by a macro call without semicolon\\)" 44 # warnings from moc generated code
51 # CI-specific warning suppressions. 53 # Some of our CI ends up generating warnings that don't really matter. Of 54 # particular interest are warnings which have different behavior in older 55 # compilers than modern ones. It's not really all that important to cater to 56 # old, broken warning implementations when newer compilers tell us when we 57 # aren't doing things properly. 58 if (NOT
"$ENV{CI}" STREQUAL
"")
59 # For some reason, warning flags aren't working here. 60 if (
"$ENV{CMAKE_CONFIGURATION}" MATCHES
"fedora40")
61 list(APPEND CTEST_CUSTOM_WARNING_EXCEPTION
63 "note: destination object allocated here" 64 "note: destination object '.*' of size .*" 65 "note: destination object of size .* allocated by 'operator new'" 68 "note: source object '.*' of size .*" 69 "note: at offset .* into source object '.*' of size .*" 71 # Seems to fire
for the destructor of `std::vector`? Ignoring all
72 # instances is sad, but it
's not clear what to do about it otherwise. 73 "Wfree-nonheap-object" 74 "note: returned from 'void\\*
operator new\\(std::size_t\\)
'" 79 list(APPEND CTEST_CUSTOM_ERROR_EXCEPTION 80 # Xcb error does not seem to cause errors in generated test images 81 "qt.qpa.xcb: internal error" 82 # Qt lupdate writes warning on stderr when finding class as template types 83 "Ignoring definition of undeclared qualified class" 84 # Sphinx warning exclusions 85 "The str interface for _CascadingStyleSheet objects is deprecated. Use css.filename instead." 88 # Regular expression for excluding files from coverage testing 89 list(APPEND CTEST_CUSTOM_COVERAGE_EXCLUDE 91 "vtk[^\\.]+ClientServer.cxx" 92 "vtk[^\\.]+Python.cxx"