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 <luoyonggang@gmail.com>
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15553>
This commit is contained in:
Yonggang Luo 2022-02-19 03:38:29 +08:00 committed by Marge Bot
parent 81afd1e118
commit 0f1b3fc17f
1 changed files with 1 additions and 1 deletions

View File

@ -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;