From: Brian Paul Date: Thu, 12 Mar 2015 14:35:38 +0000 (-0600) Subject: egl: fix cast to silence compiler warning X-Git-Tag: upstream/17.1.0~20086 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d24a20e967303e1172928937fb7f96f010d4a99c;p=platform%2Fupstream%2Fmesa.git 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 --- diff --git a/src/egl/main/eglcurrent.c b/src/egl/main/eglcurrent.c index 5d8cae4..6ffc799 100644 --- a/src/egl/main/eglcurrent.c +++ b/src/egl/main/eglcurrent.c @@ -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