mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Suppress clang warning "ATOMIC_FLAG_INIT marked deprecated" (#1502)
In C++20, macro 'ATOMIC_FLAG_INIT' has been marked as deprecated. We need still to use it to be able to compile for C++17. For now, just suppress this warning.
This commit is contained in:
parent
c720204199
commit
b1c9466df4
4 changed files with 12 additions and 0 deletions
|
@ -176,7 +176,10 @@ void TsCerr::enterCritical() {
|
|||
void TsCerr::exitCritical() {
|
||||
lock_.clear(std::memory_order_release);
|
||||
}
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-pragma"
|
||||
TsCerr::Lock TsCerr::lock_ = ATOMIC_FLAG_INIT;
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
class DefaultLog : public LogInterface {
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue