From: Frédéric Dalleau Date: Wed, 4 Sep 2013 10:48:50 +0000 (+0200) Subject: VirtGL: Fix warnings in helper_opengl.c X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~749^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e1c0e3f9033f7ae7c463ddf9c2c94b1c58fa01c8;p=sdk%2Femulator%2Fqemu.git VirtGL: Fix warnings in helper_opengl.c Pointer to int conversions Change-Id: Ifc1dd08d71b7a85c99b00ace353954a30f5dcdeb --- diff --git a/tizen/src/hw/helper_opengl.c b/tizen/src/hw/helper_opengl.c index 3cab342b6a..2d9a8b7f63 100644 --- a/tizen/src/hw/helper_opengl.c +++ b/tizen/src/hw/helper_opengl.c @@ -64,7 +64,7 @@ static inline int do_decode_call_int(ProcessStruct *process, void *args_in, int Signature *signature; int i, ret; char *argptr; - static void* args[50]; + static host_ptr args[50]; int func_number; #ifdef __APPLE__ char temp4mac[256]; @@ -140,9 +140,9 @@ static inline int do_decode_call_int(ProcessStruct *process, void *args_in, int r_buffer += 4; #ifdef __APPLE__ /*On MAC OS, GL call glGetProgramInfoLog and glGetShaderInfoLog will crash if ouput pointer is NULL*/ - args[i] = temp4mac; + args[i] = (host_ptr)temp4mac; #else - args[i] = NULL; + args[i] = (host_ptr)NULL; #endif } else if(*(int*)argptr) { *(int*)r_buffer = args_size;