From 71a0756b5d38d23dc0566972e7fb2d329c42db02 Mon Sep 17 00:00:00 2001
From: Florian Uhlig <f.uhlig@gsi.de>
Date: Fri, 4 Dec 2020 16:09:32 +0100
Subject: [PATCH] Filter fallthrough warnings

---
 CTestCustom.cmake | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/CTestCustom.cmake b/CTestCustom.cmake
index 9bc31f8531..5c809ea63f 100644
--- a/CTestCustom.cmake
+++ b/CTestCustom.cmake
@@ -47,12 +47,13 @@ set(CTEST_CUSTOM_WARNING_EXCEPTION
         "include/AnalysisTree"
 
         # -- remove intended fall through warnings
+        "[[fallthrough]]"
+        "CbmMcbm2018UnpackerAlgoTof.cxx.*warning: attributes at the beginning of statement are ignored" 
         "CbmMcbm2018UnpackerAlgoTof.cxx.*warning: this statement may fall through"
         "CbmMcbm2018UnpackerAlgoTof.cxx.*note: here"
+        "CbmDeviceUnpackTofMcbm2018.cxx.*warning: attributes at the beginning of statement are ignored"
         "CbmDeviceUnpackTofMcbm2018.cxx.*warning: this statement may fall through"
         "CbmDeviceUnpackTofMcbm2018.cxx.*note: here"
-        "PairAnalysisHistos.cxx.*warning: this statement may fall through"
-        "PairAnalysisHistos.cxx.*note: here"
 
         # -- warnings from structures for HADAQ memory casting
         "struct hadaq::HadTu"
@@ -85,6 +86,7 @@ Set (CTEST_CUSTOM_COVERAGE_EXCLUDE
      ".*Dict.cxx"
      ".*Fair.*"
      ".*GTest.*"
+     "external/"
     )
 
 Set(CTEST_CUSTOM_ERROR_EXCEPTION
-- 
GitLab