Prevent unused variable errors in case CLOCK_REALTIME is not defined.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36065 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2010-04-07 18:16:12 +00:00
parent a06cec2fdf
commit 72d74075da
3 changed files with 4 additions and 0 deletions

View File

@ -128,6 +128,8 @@ void *f1(void *parm)
currsec1.tv_sec = ts.tv_sec;
currsec1.tv_usec = ts.tv_nsec / 1000;
#else
(void)ts;
(void)rc;
gettimeofday(&currsec1, NULL);
#endif
/* Absolute time, not relative. */

View File

@ -63,6 +63,7 @@ static void* fn_rd(void *arg)
currsec1.tv_sec = ts.tv_sec;
currsec1.tv_usec = ts.tv_nsec / 1000;
#else
(void)ts;
gettimeofday(&currsec1, NULL);
#endif
/* Absolute time, not relative. */

View File

@ -69,6 +69,7 @@ static void* fn_wr(void *arg)
currsec1.tv_sec = ts.tv_sec;
currsec1.tv_usec = ts.tv_nsec / 1000;
#else
(void)ts;
gettimeofday(&currsec1, NULL);
#endif
/* Absolute time, not relative. */