Commit b1c9466 1 parent c720204 commit b1c9466 Copy full SHA for b1c9466
File tree 4 files changed +12
-0
lines changed
4 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,10 @@ class SpinLock {
63
63
}
64
64
65
65
private:
66
+ #pragma clang diagnostic push
67
+ #pragma clang diagnostic ignored "-Wdeprecated-pragma"
66
68
std::atomic_flag flag_ = ATOMIC_FLAG_INIT;
69
+ #pragma clang diagnostic pop
67
70
void unlock () {
68
71
flag_.clear (std::memory_order_release);
69
72
}
Original file line number Diff line number Diff line change @@ -176,7 +176,10 @@ void TsCerr::enterCritical() {
176
176
void TsCerr::exitCritical () {
177
177
lock_.clear (std::memory_order_release);
178
178
}
179
+ #pragma clang diagnostic push
180
+ #pragma clang diagnostic ignored "-Wdeprecated-pragma"
179
181
TsCerr::Lock TsCerr::lock_ = ATOMIC_FLAG_INIT;
182
+ #pragma clang diagnostic pop
180
183
181
184
class DefaultLog : public LogInterface {
182
185
public:
Original file line number Diff line number Diff line change @@ -343,7 +343,10 @@ class TsLog : public LogInterface {
343
343
344
344
private:
345
345
LogInterface *log_ = nullptr ;
346
+ #pragma clang diagnostic push
347
+ #pragma clang diagnostic ignored "-Wdeprecated-pragma"
346
348
std::atomic_flag lock_ = ATOMIC_FLAG_INIT;
349
+ #pragma clang diagnostic pop
347
350
void enter_critical () {
348
351
while (lock_.test_and_set (std::memory_order_acquire)) {
349
352
// spin
Original file line number Diff line number Diff line change @@ -149,7 +149,10 @@ class PollableFdInfo : private ListNode {
149
149
150
150
private:
151
151
NativeFd fd_{};
152
+ #pragma clang diagnostic push
153
+ #pragma clang diagnostic ignored "-Wdeprecated-pragma"
152
154
std::atomic_flag lock_ = ATOMIC_FLAG_INIT;
155
+ #pragma clang diagnostic pop
153
156
PollFlagsSet flags_;
154
157
#if TD_PORT_WINDOWS
155
158
SpinLock observer_lock_;
You can’t perform that action at this time.
0 commit comments