mirror of
https://github.com/boostorg/smart_ptr.git
synced 2025-08-02 06:04:27 +02:00
Silence an g++ -Wextra warning.
[SVN r44728]
This commit is contained in:
@@ -111,7 +111,11 @@ inline void yield( unsigned k )
|
|||||||
}
|
}
|
||||||
else
|
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_sec = 0;
|
||||||
rqtp.tv_nsec = 1000;
|
rqtp.tv_nsec = 1000;
|
||||||
|
Reference in New Issue
Block a user