mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
egl: fix cast to silence compiler warning
eglcurrent.c: In function '_eglSetTSD':
eglcurrent.c:57:4: warning: passing argument 2 of 'tss_set' discards
'const' qualifier from pointer target type [enabled by default]
tss_set(_egl_TSD, (const void *) t);
^
In file included from ../../../include/c11/threads.h:72:0,
from eglcurrent.c:32:
../../../include/c11/threads_posix.h:357:1: note: expected 'void *'
but argument is of type 'const void *'
tss_set(tss_t key, void *val)
^
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
This commit is contained in:
parent
a38e6c4fbd
commit
d24a20e967
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ static __thread const _EGLThreadInfo *_egl_TLS
|
|||
|
||||
static inline void _eglSetTSD(const _EGLThreadInfo *t)
|
||||
{
|
||||
tss_set(_egl_TSD, (const void *) t);
|
||||
tss_set(_egl_TSD, (void *) t);
|
||||
#ifdef GLX_USE_TLS
|
||||
_egl_TLS = t;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue