/builds/gitlab-kitware-sciviz-ci/build/CTestCustom.cmake
Go to the documentation of this file.
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")
5 endif ()
6 
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'"
11 
12  # Ignore protobuf-generated source file warnings.
13  "vtkPVMessage.pb.cc"
14 
15  # ignore warning from string_fortified.h inclusion
16  "string_fortified.h"
17 
18  # Unreachable code in xutility causes C4702 warnings in MSVC.
19  "xutility.*unreachable code"
20 
21  # exclude warnings from dmfile.cxx
22  "dmfile.*"
23 
24  # exclude warnings from unreference NewInstance function
25  ".*NewInstance.*was declared but never referenced"
26 
27  # Intel compiler warning about routines being both inline and noinline
28  "warning #2196.* routine is both"
29 
30  # compiler optimizations may sometimes lead to this warning
31  "assuming signed overflow does not occur when assuming that"
32 
33  # Visual Studio STL warnings.
34  "VC.Tools.*include.*: warning"
35 
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\\)"
43 
44  # warnings from moc generated code
45  "_autogen"
46 
47  # deprecation notes
48  "note: declared here"
49 )
50 
51 # CI-specific warning suppressions.
52 #
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
62  "Wstringop-overflow="
63  "note: destination object allocated here"
64  "note: destination object '.*' of size .*"
65  "note: destination object of size .* allocated by 'operator new'"
66 
67  "Wstringop-overread"
68  "note: source object '.*' of size .*"
69  "note: at offset .* into source object '.*' of size .*"
70 
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\\)'"
75  )
76  endif ()
77 endif ()
78 
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."
86 )
87 
88 # Regular expression for excluding files from coverage testing
89 list(APPEND CTEST_CUSTOM_COVERAGE_EXCLUDE
90  ".*/VTK/.*"
91  "vtk[^\\.]+ClientServer.cxx"
92  "vtk[^\\.]+Python.cxx"
93  "ui_[^\\.]+.h"
94  "moc_[^\\.]+.h"
95  "vtkprotobuf")