[PATCH] Be strict in checking option ranges
[fio.git] / gettime.c
index c691113e9ad85365999d942aff8d99415101be31..161240eeedbbcee0107bfc92a5c1fa7e94954915 100644 (file)
--- a/gettime.c
+++ b/gettime.c
@@ -101,15 +101,17 @@ static void fio_init gtod_init(void)
 
 #endif /* FIO_DEBUG_TIME */
 
+#ifdef FIO_DEBUG_TIME
 void fio_gettime(struct timeval *tp, void *caller)
+#else
+void fio_gettime(struct timeval *tp, void fio_unused *caller)
+#endif
 {
 #ifdef FIO_DEBUG_TIME
        if (!caller)
                caller = __builtin_return_address(0);
 
        gtod_log_caller(caller);
-#else
-       caller = NULL;
 #endif
 repeat:
        if (!clock_gettime_works)