File tree Expand file tree Collapse file tree 4 files changed +12
-0
lines changed Expand file tree Collapse file tree 4 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,10 @@ class SpinLock {
6363 }
6464
6565 private:
66+ #pragma clang diagnostic push
67+ #pragma clang diagnostic ignored "-Wdeprecated-pragma"
6668 std::atomic_flag flag_ = ATOMIC_FLAG_INIT;
69+ #pragma clang diagnostic pop
6770 void unlock () {
6871 flag_.clear (std::memory_order_release);
6972 }
Original file line number Diff line number Diff line change @@ -176,7 +176,10 @@ void TsCerr::enterCritical() {
176176void TsCerr::exitCritical () {
177177 lock_.clear (std::memory_order_release);
178178}
179+ #pragma clang diagnostic push
180+ #pragma clang diagnostic ignored "-Wdeprecated-pragma"
179181TsCerr::Lock TsCerr::lock_ = ATOMIC_FLAG_INIT;
182+ #pragma clang diagnostic pop
180183
181184class DefaultLog : public LogInterface {
182185 public:
Original file line number Diff line number Diff line change @@ -343,7 +343,10 @@ class TsLog : public LogInterface {
343343
344344 private:
345345 LogInterface *log_ = nullptr ;
346+ #pragma clang diagnostic push
347+ #pragma clang diagnostic ignored "-Wdeprecated-pragma"
346348 std::atomic_flag lock_ = ATOMIC_FLAG_INIT;
349+ #pragma clang diagnostic pop
347350 void enter_critical () {
348351 while (lock_.test_and_set (std::memory_order_acquire)) {
349352 // spin
Original file line number Diff line number Diff line change @@ -149,7 +149,10 @@ class PollableFdInfo : private ListNode {
149149
150150 private:
151151 NativeFd fd_{};
152+ #pragma clang diagnostic push
153+ #pragma clang diagnostic ignored "-Wdeprecated-pragma"
152154 std::atomic_flag lock_ = ATOMIC_FLAG_INIT;
155+ #pragma clang diagnostic pop
153156 PollFlagsSet flags_;
154157#if TD_PORT_WINDOWS
155158 SpinLock observer_lock_;
You can’t perform that action at this time.
0 commit comments