1 # Copyright (C) 2010-2015 CEA/DEN, EDF R&D
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License, or (at your option) any later version.
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # Lesser General Public License for more details.
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 SET(CTEST_CUSTOM_WARNING_MATCH
21 ${CTEST_CUSTOM_WARNING_MATCH}
22 "{standard input}:[0-9][0-9]*: Warning: "
25 # Removing this because it somehow matches normal build output lines
26 # on several platforms. Perhaps there is a bug in the custom match
29 # SET(CTEST_CUSTOM_ERROR_MATCH
30 # ${CTEST_CUSTOM_ERROR_MATCH}
31 # "\\", line [0-9]+, in "
34 IF("@CMAKE_SYSTEM@" MATCHES "OSF")
35 SET(CTEST_CUSTOM_WARNING_EXCEPTION
36 ${CTEST_CUSTOM_WARNING_EXCEPTION}
40 ENDIF("@CMAKE_SYSTEM@" MATCHES "OSF")
42 SET(CTEST_CUSTOM_WARNING_EXCEPTION
43 ${CTEST_CUSTOM_WARNING_EXCEPTION}
45 "xtree.[0-9]+. : warning C4702: unreachable code"
47 "variable .var_args[2]*. is used before its value is set"
48 "jobserver unavailable"
49 "warning: \\(Long double usage is reported only once for each file"
50 "warning: To disable this warning use"
51 "warning: .+ might be clobbered by .longjmp. or .vfork."
52 "(ranlib|libtool):.*file: .+ has no symbols"
53 "could not be inlined"
54 "ld: warning prebinding disabled because \\((__TEXT|__DATA|__LINKEDIT) segment \\(address = 0x[a-f0-9]+ size = 0x[a-f0-9]+\\) of (.*) overlaps with (__LINKEDIT|__TEXT|__DATA) segment \\(address = 0x[a-f0-9]+ size = 0x[a-f0-9]+\\) of (.*)"
55 "ld: warning prebinding disabled because dependent library: (.*).dylib is not prebound"
57 # MPI uses c++ but may have been built with a different c++ compiler.
58 # It seems to work anyway so let's ignore it to make it easier to
59 # test more compilers.
60 "ld: warning: libstdc.*, needed by .*, may conflict with libstdc.*"
62 # Does *anyone* have an STL implementation that compiles without warnings...?
63 "cc-1116 CC: WARNING File = /usr/include/CC/stl_alloc.h, Line = 175"
65 # vtkfreetype needs to be updated to get rid of warnings that occur during
66 # 64-bit compiles... for now, mask them out of dashboard results:
67 "vtkfreetype.*warning C4"
68 "vtkfreetype.*warning: dereferencing type-punned pointer"
70 # vtknetcdf occasionally has warnings for things that are not a problem.
71 "vtknetcdf.*warning: dereferencing type-punned pointer"
73 # Some VTK dashboards include building bits of Qt which produce lots of
74 # the following warnings when built with the MS compilers. Qt guys should
75 # fix their code. Until they do, keep the Qt chatter off the VTK dashboard
77 "include.Qt(Core|Gui).*warning C4127: conditional expression is constant"
79 # Specifically for HP compiler, mask out
80 "Utilities.(vtkjpeg|vtksqlite).*warning.*more strictly aligned type"
81 "Filtering.vtkImageMultiple(Input|InputOutput)Filter.cxx.*warning.*more strictly aligned type"
82 "IO.vtkJPEGReader.cxx.*warning.*more strictly aligned type"
86 SET(CTEST_CUSTOM_WARNING_EXCEPTION
87 ${CTEST_CUSTOM_WARNING_EXCEPTION}
88 "warning -.: directory name .* does not exist"
89 "OpenTransport.*warning.*is deprecated"
91 # Somebody will have to get rid of these calls eventually (bug 4001) to
92 # eliminate these warnings. For now, mask them out of dashboard results:
93 "vtkCarbonRenderWindow.cxx.*warning: .(New|Diff|Equal|Dispose)Rgn. is deprecated"
97 SET(CTEST_CUSTOM_COVERAGE_EXCLUDE
98 ${CTEST_CUSTOM_COVERAGE_EXCLUDE}
100 "vtk[^\\.]+(Java|Python|Tcl).cxx"