From 75ae78d84a70dd6989280777282a596f3d94e91f Mon Sep 17 00:00:00 2001
From: scott snyder <sss@karma>
Date: Wed, 5 Aug 2020 11:10:48 -0400
Subject: [PATCH] AthenaServices: Fix tbb warning.

task.h is deprecated.
---
 .../AthenaServices/src/DelayedConditionsCleanerSvc.cxx    | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/Control/AthenaServices/src/DelayedConditionsCleanerSvc.cxx b/Control/AthenaServices/src/DelayedConditionsCleanerSvc.cxx
index bddcbdf3bd6..23a29511087 100644
--- a/Control/AthenaServices/src/DelayedConditionsCleanerSvc.cxx
+++ b/Control/AthenaServices/src/DelayedConditionsCleanerSvc.cxx
@@ -1,5 +1,5 @@
 /*
-  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
+  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
 */
 /*
  */
@@ -18,7 +18,6 @@
 #include "CxxUtils/StrFormat.h"
 #include "GaudiKernel/EventContext.h"
 #include "GaudiKernel/ServiceHandle.h"
-#include "tbb/task.h"
 #include <algorithm>
 
 
@@ -32,6 +31,11 @@
 #define USE_ASYNC_TASK 0
 
 
+#if USE_ASYNC_TASK
+#include "tbb/task.h"
+#endif
+
+
 namespace Athena {
 
 
-- 
GitLab