silence a few warnings

This commit is contained in:
Jérémy Zurcher 2014-05-08 00:14:10 +02:00
parent 95f5c11703
commit 9a79d1e864
6 changed files with 8 additions and 5 deletions

View File

@ -291,7 +291,7 @@ static void
_device_notify_key(Ecore_Drm_Evdev *dev, struct input_event *event, unsigned int timestamp)
{
unsigned int code, nsyms;
unsigned int *keycode;
/* unsigned int *keycode; */
const xkb_keysym_t *syms;
xkb_keysym_t sym = XKB_KEY_NoSymbol;
char key[256], keyname[256], compose[256];

View File

@ -1593,6 +1593,7 @@ _lua_parameter_parse(lua_State *L, Instruction_Param *param, int i)
case VT_BOOL:
if (lua_type(L, i) == LUA_TSTRING)
{
ok = EINA_FALSE;
const char *str = lua_tostring(L, i);
Eina_Bool val = _bool_parse(str, &ok);
if (!ok) goto fail;

View File

@ -756,7 +756,7 @@ _ecore_imf_context_ibus_update_preedit_text_cb(IBusInputContext *ibuscontext EI
}
// Add underline for all characters which don't have attribute.
for (unsigned int pos = 0; pos < preedit_length; ++pos)
for (pos = 0; pos < preedit_length; ++pos)
{
if (!attrs_flag[pos])
{

View File

@ -2072,7 +2072,7 @@ _native_bind_cb(void *data, void *image)
GLERR(__FUNCTION__, __FILE__, __LINE__, "");
}
return;
data = NULL;
(void *) (data = NULL);
}
static void
@ -2106,7 +2106,7 @@ _native_unbind_cb(void *data, void *image)
GLERR(__FUNCTION__, __FILE__, __LINE__, "");
}
return;
data = NULL;
(void *) (data = NULL);
}
static void

View File

@ -412,7 +412,7 @@ eng_window_new(Display *disp,
evas_gl_common_context_resize(gw->gl_context, w, h, rot);
gw->surf = 1;
return gw;
indirect = 0;
(void) (indirect = 0);
}
void

View File

@ -1679,6 +1679,8 @@ eng_image_size_set(void *data, void *image, int w, int h)
case EVAS_COLORSPACE_YCBCR420TM12601_PL:
w &= ~0x1;
break;
default:
break;
}
evas_gl_common_image_alloc_ensure(im);