diff options
author | Ashutosh Dixit <ashutosh.dixit@intel.com> | 2022-07-01 20:05:35 -0700 |
---|---|---|
committer | Ashutosh Dixit <ashutosh.dixit@intel.com> | 2022-07-06 14:11:50 -0700 |
commit | 35edd17a9c1dcd71b92182bce9378eea321b0f37 (patch) | |
tree | d27c6633790840ac49cebaa330dff5e5f496c2fc /tests/prime_mmap.c | |
parent | 1bd1a033e71790bcc60acccac32d4195cae40b6e (diff) |
tests/drm_read: Fix -Wdeprecated-declarations
[1/405] Compiling C object tests/drm_read.p/drm_read.c.o
../tests/drm_read.c: In function ‘test_short_buffer_wakeup’:
../tests/drm_read.c:224:17: warning: ‘pthread_yield’ is deprecated: \
pthread_yield is deprecated, \
use sched_yield instead [-Wdeprecated-declarations]
224 | pthread_yield();
| ^~~~~~~~~~~~~
/usr/include/pthread.h:479:12: note: declared here
479 | extern int __REDIRECT_NTH (pthread_yield, (void), sched_yield)
| ^~~~~~~~~~~~~~
Use sched_yield instead of pthread_yield
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Diffstat (limited to 'tests/prime_mmap.c')
0 files changed, 0 insertions, 0 deletions