mirror of
https://github.com/boostorg/smart_ptr.git
synced 2025-07-31 05:07:21 +02:00
Silence an g++ -Wextra warning.
[SVN r44728]
This commit is contained in:
@ -111,7 +111,11 @@ inline void yield( unsigned k )
|
||||
}
|
||||
else
|
||||
{
|
||||
struct timespec rqtp = { 0 };
|
||||
// g++ -Wextra warns on {} or {0}
|
||||
struct timespec rqtp = { 0, 0 };
|
||||
|
||||
// POSIX says that timespec has tv_sec and tv_nsec
|
||||
// But it doesn't guarantee order or placement
|
||||
|
||||
rqtp.tv_sec = 0;
|
||||
rqtp.tv_nsec = 1000;
|
||||
|
Reference in New Issue
Block a user