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:
+2
@@ -128,6 +128,8 @@ void *f1(void *parm)
|
|||||||
currsec1.tv_sec = ts.tv_sec;
|
currsec1.tv_sec = ts.tv_sec;
|
||||||
currsec1.tv_usec = ts.tv_nsec / 1000;
|
currsec1.tv_usec = ts.tv_nsec / 1000;
|
||||||
#else
|
#else
|
||||||
|
(void)ts;
|
||||||
|
(void)rc;
|
||||||
gettimeofday(&currsec1, NULL);
|
gettimeofday(&currsec1, NULL);
|
||||||
#endif
|
#endif
|
||||||
/* Absolute time, not relative. */
|
/* Absolute time, not relative. */
|
||||||
|
|||||||
+1
@@ -63,6 +63,7 @@ static void* fn_rd(void *arg)
|
|||||||
currsec1.tv_sec = ts.tv_sec;
|
currsec1.tv_sec = ts.tv_sec;
|
||||||
currsec1.tv_usec = ts.tv_nsec / 1000;
|
currsec1.tv_usec = ts.tv_nsec / 1000;
|
||||||
#else
|
#else
|
||||||
|
(void)ts;
|
||||||
gettimeofday(&currsec1, NULL);
|
gettimeofday(&currsec1, NULL);
|
||||||
#endif
|
#endif
|
||||||
/* Absolute time, not relative. */
|
/* Absolute time, not relative. */
|
||||||
|
|||||||
+1
@@ -69,6 +69,7 @@ static void* fn_wr(void *arg)
|
|||||||
currsec1.tv_sec = ts.tv_sec;
|
currsec1.tv_sec = ts.tv_sec;
|
||||||
currsec1.tv_usec = ts.tv_nsec / 1000;
|
currsec1.tv_usec = ts.tv_nsec / 1000;
|
||||||
#else
|
#else
|
||||||
|
(void)ts;
|
||||||
gettimeofday(&currsec1, NULL);
|
gettimeofday(&currsec1, NULL);
|
||||||
#endif
|
#endif
|
||||||
/* Absolute time, not relative. */
|
/* Absolute time, not relative. */
|
||||||
|
|||||||
Reference in New Issue
Block a user