From 0f1b3fc17f0e543c55d6c30d9c1fadc610219b5b Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Sat, 19 Feb 2022 03:38:29 +0800 Subject: [PATCH] util: Fixes unused parameter warnings The compiler warning: ``` ../src/mesa/util/u_thread.h: In function 'util_thread_get_time_nano': ../src/mesa/util/u_thread.h:239:34: warning: unused parameter 'thread' [-Wunused-parameter] 239 | util_thread_get_time_nano(thrd_t thread) | ~~~~~~~^~~~~~ ``` Signed-off-by: Yonggang Luo Reviewed-by: Yiwei Zhang Part-of: --- src/util/u_thread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/u_thread.h b/src/util/u_thread.h index ec505379fbf..cc8241b767d 100644 --- a/src/util/u_thread.h +++ b/src/util/u_thread.h @@ -236,7 +236,7 @@ util_set_current_thread_affinity(const uint32_t *mask, /* Return the time of a thread's CPU time clock. */ static inline int64_t -util_thread_get_time_nano(thrd_t thread) +util_thread_get_time_nano(ASSERTED thrd_t thread) { #if defined(HAVE_PTHREAD) && !defined(__APPLE__) && !defined(__HAIKU__) struct timespec ts;