Skip to content
Snippets Groups Projects
Commit 38e8e8bc authored by Attila Krasznahorkay's avatar Attila Krasznahorkay
Browse files

Suppress warnings about volatile variables for Cling.

The ROOT dictionary generator can not be convinced to ignore this
specific warning for <tbb/atomic.h>. At least I did not find a better
way of doing it.
parent a8a7eaa8
No related branches found
No related tags found
1 merge request!64172Suppress TBB Warnings with C++20, 23.0 branch (2023.07.06.)
This commit is part of merge request !64172. Comments created here will be created in the context of that merge request.
// This file's extension implies that it's C, but it's really -*- C++ -*-. // This file's extension implies that it's C, but it's really -*- C++ -*-.
/* /*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
*/ */
// $Id$ // $Id$
...@@ -130,7 +130,18 @@ private: ...@@ -130,7 +130,18 @@ private:
#include "boost/thread/shared_mutex.hpp" #include "boost/thread/shared_mutex.hpp"
#include "boost/thread/tss.hpp" #include "boost/thread/tss.hpp"
// See ATLINFR-4996 for an explanation of this clunky
// warning suppression.
#if __cplusplus > 201703L
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-volatile"
#endif // >C++17
#include "tbb/concurrent_vector.h" #include "tbb/concurrent_vector.h"
#if __cplusplus > 201703L
#pragma clang diagnostic pop
#endif // >C++17
#include <atomic> #include <atomic>
#include <mutex> #include <mutex>
#include <thread> #include <thread>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment