[Mesa-dev] [PATCH] egl: fix cast to silence compiler warning

Emil Velikov emil.l.velikov at gmail.com
Fri Mar 13 03:54:30 PDT 2015


On 12/03/15 14:36, Brian Paul wrote:
> 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)
>  ^
Ouch... should have paid closer attention to the build log.

Reviewed-by: Emil Velikov <emil.l.velikov at gmail.com>

Thanks Brian.
Emil


More information about the mesa-dev mailing list