Silence an g++ -Wextra warning.

[SVN r44728]
This commit is contained in:
Peter Dimov
2008-04-23 00:33:58 +00:00
parent 9e92c6354c
commit 93545d5cf2

View File

@ -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;