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:
parent
81afd1e118
commit
0f1b3fc17f
|
@ -236,7 +236,7 @@ util_set_current_thread_affinity(const uint32_t *mask,
|
||||||
|
|
||||||
/* Return the time of a thread's CPU time clock. */
|
/* Return the time of a thread's CPU time clock. */
|
||||||
static inline int64_t
|
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__)
|
#if defined(HAVE_PTHREAD) && !defined(__APPLE__) && !defined(__HAIKU__)
|
||||||
struct timespec ts;
|
struct timespec ts;
|
||||||
|
|
Loading…
Reference in New Issue