[libcxx-commits] [libcxx] d2acf22 - [gcc] Fix -Wempty-body warning. NFC.
Marek Kurdej via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Nov 15 07:18:09 PST 2020
Author: Marek Kurdej
Date: 2020-11-15T16:17:52+01:00
New Revision: d2acf229279233a6ff7317cc2268a65b7bc5fe80
URL: https://github.com/llvm/llvm-project/commit/d2acf229279233a6ff7317cc2268a65b7bc5fe80
DIFF: https://github.com/llvm/llvm-project/commit/d2acf229279233a6ff7317cc2268a65b7bc5fe80.diff
LOG: [gcc] Fix -Wempty-body warning. NFC.
Added:
Modified:
libcxx/include/__threading_support
libcxx/include/atomic
Removed:
################################################################################
diff --git a/libcxx/include/__threading_support b/libcxx/include/__threading_support
index bae6fe0b9558..85bb96bdc6ba 100644
--- a/libcxx/include/__threading_support
+++ b/libcxx/include/__threading_support
@@ -293,7 +293,7 @@ struct __libcpp_timed_backoff_policy {
else if(__elapsed > chrono::microseconds(4))
__libcpp_thread_yield();
else
- ; // poll
+ {} // poll
return false;
}
};
diff --git a/libcxx/include/atomic b/libcxx/include/atomic
index f00f7b8a01a0..70f17699c224 100644
--- a/libcxx/include/atomic
+++ b/libcxx/include/atomic
@@ -1525,7 +1525,7 @@ struct __libcpp_atomic_wait_backoff_impl {
else if(__elapsed > chrono::microseconds(4))
__libcpp_thread_yield();
else
- ; // poll
+ {} // poll
return false;
}
};
More information about the libcxx-commits
mailing list