mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-11-23 07:19:50 +00:00
util: Should not use ASSERTED in util_thread_get_time_nano
The parameter is not ASSERTED
Fixes: 0f1b3fc17f
("util: Fixes unused parameter warnings")
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/15655>
This commit is contained in:
parent
4525d7ed85
commit
c91e3c6a42
@ -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(ASSERTED thrd_t thread)
|
||||
util_thread_get_time_nano(thrd_t thread)
|
||||
{
|
||||
#if defined(HAVE_PTHREAD) && !defined(__APPLE__) && !defined(__HAIKU__)
|
||||
struct timespec ts;
|
||||
@ -246,6 +246,7 @@ util_thread_get_time_nano(ASSERTED thrd_t thread)
|
||||
clock_gettime(cid, &ts);
|
||||
return (int64_t)ts.tv_sec * 1000000000 + ts.tv_nsec;
|
||||
#else
|
||||
(void)thread;
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user