libc++ in LLVM 11 uses an empty else clause in
include/c++/v1/__thread_support.h which triggers this warning.
Details
Details
- world builds fail on amd64 (and other archs) in libdevdctl when building with both GCC 6 and GCC 9 and get farther now (though my gcc amd64 world still hasn't successfully completed)
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
This is fine. I understood there are some libc++ headers that do just ; as the body for something, and that triggers it.
Comment Actions
Yes, in this case it is line 295 of the header I referenced:
inline _LIBCPP_INLINE_VISIBILITY bool __libcpp_timed_backoff_policy::operator()(chrono::nanoseconds __elapsed) const { if(__elapsed > chrono::milliseconds(128)) __libcpp_thread_sleep_for(chrono::milliseconds(8)); else if(__elapsed > chrono::microseconds(64)) __libcpp_thread_sleep_for(__elapsed / 2); else if(__elapsed > chrono::microseconds(4)) __libcpp_thread_yield(); else ; // poll return false; }
The warning is for the `; // poll' line.