Skip to content
Snippets Groups Projects
Commit 1d08d3e1 authored by Attila Krasznahorkay's avatar Attila Krasznahorkay Committed by Julien Maurer
Browse files

Suppress TBB Warnings with C++20, 23.0 branch (2023.07.06.)

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
No related merge requests found
// 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$
......@@ -130,7 +130,18 @@ private:
#include "boost/thread/shared_mutex.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"
#if __cplusplus > 201703L
#pragma clang diagnostic pop
#endif // >C++17
#include <atomic>
#include <mutex>
#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