Module: Mesa
Branch: main
Commit: 0f1b3fc17f0e543c55d6c30d9c1fadc610219b5b
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=0f1b3fc17f0e543c55d6c30d9c1fadc610219b5b

Author: Yonggang Luo <[email protected]>
Date:   Sat Feb 19 03:38:29 2022 +0800

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 <[email protected]>
Reviewed-by: Yiwei Zhang <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15553>

---

 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;

Reply via email to