##============================================================================
##  Copyright (c) Kitware, Inc.
##  All rights reserved.
##  See LICENSE.txt for details.
##
##  This software is distributed WITHOUT ANY WARRANTY; without even
##  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
##  PURPOSE.  See the above copyright notice for more information.
##============================================================================

list(APPEND CTEST_CUSTOM_WARNING_EXCEPTION
  ".*warning: ignoring loop annotation.*"
  ".*warning: Included by graph for.*not generated, too many nodes. Consider increasing DOT_GRAPH_MAX_NODES.*"

  # disable doxygen warnings about no matching members caused by auto keyword
  ".*warning: no matching file member found for.*"

  # disable doxygen warning from VTKM_DEPRECATED usage
  ".*warning: Found.*while parsing initializer list!.*"

  # disable doxygen warning about potential recursion.
  ".*warning: Detected potential recursive class relation between .*"

  # disable doxygen warning about not generating graph
  ".*warning: Included by graph for"

  # Doxygen warns when creating output directory:
  "Notice: Output directory.*does not exist. I have created it for you."

  # disable doxygen warnings from CONTRIBUTING.md, CodingConventions.md.
  # these files are really intended for Gitlab, hence we don't want to use
  # doxygen tags in them.
  "CONTRIBUTING.md.*warning"
  "CodingConventions.md.*warning"

  # disable static/dynamic weak symbol warnings
  ".*ld: warning: direct access in function.*"


  # disable PTX warning about recursive functions. These look like they can't be silenced
  # without disabling all PTX warnings, show hide them on the dashboard.
  # We explicitly only suppress specific worklets so we can see when new recursive
  # worklets are added
  "ptxas warning : Stack size for entry function.*NearestNeighborSearch3DWorklet.*"
  "ptxas warning : Stack size for entry function.*CoordinatesPortal.*"
  "ptxas warning : Stack size for entry function.*CellRangesExtracter.*"

  # disable nvlink warnings about virtual functions. The Stack size warnings can only
  # be silenced in CUDA >=9, without disabling all nvlink warnings.
  "nvlink warning : Stack size for entry function.*NearestNeighborSearch.*"
  "nvlink warning : Stack size for entry function.*BoundingIntervalHierarchyTester.*"
  "nvlink warning : Stack size for entry function.*ArrayPortalRef.*"
  "nvlink warning : Stack size for entry function.*ArrayPortalWrapper.*"
  "nvlink warning : .*ArrayPortalWrapper.* has address taken but no possible call to it"
  "nvlink warning : .*ArrayPortalVirtual.* has address taken but no possible call to it"
  "nvlink warning : .*CellLocatorBoundingIntervalHierarchyExec.* has address taken but no possible call to it"
  "nvlink warning : .*CellLocatorRectilinearGrid.* has address taken but no possible call to it"
  "nvlink warning : .*CellLocatorTwoLevel.* has address taken but no possible call to it"
  "nvlink warning : .*CellLocatorUniformGrid.* has address taken but no possible call to it"

)
