OSDN Git Service

egl/android: fix incompatible pointer in free(device_name)
authorMauro Rossi <issor.oruam@gmail.com>
Wed, 24 Apr 2019 13:19:20 +0000 (15:19 +0200)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 25 Apr 2019 03:35:16 +0000 (11:35 +0800)
commit0409413369a6d64fd01930a32513949f804d1861
tree4d4fa0ee4c3f349511d620e188a3e0aac35b7222
parent773abf86556db420a3778132816f16beb317d81f
egl/android: fix incompatible pointer in free(device_name)

Fixes the following building error:

external/mesa/src/egl/drivers/dri2/platform_android.c:1476:12:
error: passing 'const char *' to parameter of type 'void *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
      free(device_name);
           ^~~~~~~~~~~
bionic/libc/include/malloc.h:36:17: note: passing argument to parameter 'p' here
void free(void* p);
                ^
1 error generated.

Fixes: da5d83c ("egl/android: determine how to open device at runtime")
Signed-off-by: Mauro Rossi <issor.oruam@gmail.com>
src/egl/drivers/dri2/platform_android.c