# Copyright (C) 2010-2013 CEA/DEN, EDF R&D # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # SET(CTEST_CUSTOM_WARNING_MATCH ${CTEST_CUSTOM_WARNING_MATCH} "{standard input}:[0-9][0-9]*: Warning: " ) # Removing this because it somehow matches normal build output lines # on several platforms. Perhaps there is a bug in the custom match # support. # # SET(CTEST_CUSTOM_ERROR_MATCH # ${CTEST_CUSTOM_ERROR_MATCH} # "\\", line [0-9]+, in " # ) IF("@CMAKE_SYSTEM@" MATCHES "OSF") SET(CTEST_CUSTOM_WARNING_EXCEPTION ${CTEST_CUSTOM_WARNING_EXCEPTION} "vtkKWApplication" "vtkKWObject" ) ENDIF("@CMAKE_SYSTEM@" MATCHES "OSF") SET(CTEST_CUSTOM_WARNING_EXCEPTION ${CTEST_CUSTOM_WARNING_EXCEPTION} "Utilities/vtktiff/" "xtree.[0-9]+. : warning C4702: unreachable code" "warning LNK4221" "variable .var_args[2]*. is used before its value is set" "jobserver unavailable" "warning: \\(Long double usage is reported only once for each file" "warning: To disable this warning use" "warning: .+ might be clobbered by .longjmp. or .vfork." "(ranlib|libtool):.*file: .+ has no symbols" "could not be inlined" "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 (.*)" "ld: warning prebinding disabled because dependent library: (.*).dylib is not prebound" # MPI uses c++ but may have been built with a different c++ compiler. # It seems to work anyway so let's ignore it to make it easier to # test more compilers. "ld: warning: libstdc.*, needed by .*, may conflict with libstdc.*" # Does *anyone* have an STL implementation that compiles without warnings...? "cc-1116 CC: WARNING File = /usr/include/CC/stl_alloc.h, Line = 175" # vtkfreetype needs to be updated to get rid of warnings that occur during # 64-bit compiles... for now, mask them out of dashboard results: "vtkfreetype.*warning C4" "vtkfreetype.*warning: dereferencing type-punned pointer" # vtknetcdf occasionally has warnings for things that are not a problem. "vtknetcdf.*warning: dereferencing type-punned pointer" # Some VTK dashboards include building bits of Qt which produce lots of # the following warnings when built with the MS compilers. Qt guys should # fix their code. Until they do, keep the Qt chatter off the VTK dashboard # results: "include.Qt(Core|Gui).*warning C4127: conditional expression is constant" # Specifically for HP compiler, mask out "Utilities.(vtkjpeg|vtksqlite).*warning.*more strictly aligned type" "Filtering.vtkImageMultiple(Input|InputOutput)Filter.cxx.*warning.*more strictly aligned type" "IO.vtkJPEGReader.cxx.*warning.*more strictly aligned type" ) IF(APPLE) SET(CTEST_CUSTOM_WARNING_EXCEPTION ${CTEST_CUSTOM_WARNING_EXCEPTION} "warning -.: directory name .* does not exist" "OpenTransport.*warning.*is deprecated" # Somebody will have to get rid of these calls eventually (bug 4001) to # eliminate these warnings. For now, mask them out of dashboard results: "vtkCarbonRenderWindow.cxx.*warning: .(New|Diff|Equal|Dispose)Rgn. is deprecated" ) ENDIF(APPLE) SET(CTEST_CUSTOM_COVERAGE_EXCLUDE ${CTEST_CUSTOM_COVERAGE_EXCLUDE} "vtk.*TCLInit.cxx" "vtk[^\\.]+(Java|Python|Tcl).cxx" "Utilities.kwsys" "Utilities.vtksys" )