Win32: Fix some compilation warnings

Reported by vtorri, thanks
This commit is contained in:
Jean-Philippe Andre 2014-06-11 14:04:48 +09:00
parent 36e153f956
commit 2ffb942d5a
5 changed files with 9 additions and 5 deletions

View File

@ -3262,7 +3262,7 @@ _genlist_renew(Evas_Object *obj, const char *style)
for (i = 0; i < 50; i++)
{
elm_genlist_item_append(obj, ic, (void *)(long)i, NULL,
elm_genlist_item_append(obj, ic, (void *)(uintptr_t)i, NULL,
ELM_GENLIST_ITEM_NONE, NULL, NULL);
}
elm_genlist_item_class_free(ic);

View File

@ -891,6 +891,7 @@ elm_quicklaunch_prepare(int argc,
#else
(void)argc;
(void)argv;
(void)cwd;
return EINA_FALSE;
#endif
}

View File

@ -464,7 +464,9 @@ _eet_data_save(const Elm_Prefs_Data *prefs_data,
if (eina_value_get(&(item->value), &val))
{
tm = gmtime(&(val.tv_sec));
time_t gmt = val.tv_sec;
tm = gmtime(&gmt);
it->value.d.y = tm->tm_year + 1900;
it->value.d.m = tm->tm_mon + 1;

View File

@ -55,13 +55,14 @@ elm_prefs_datetime_value_set(Evas_Object *obj,
{
struct timeval val;
struct tm *t;
time_t gmt;
if (eina_value_type_get(value) != EINA_VALUE_TYPE_TIMEVAL)
return EINA_FALSE;
eina_value_get(value, &val);
t = gmtime(&(val.tv_sec));
gmt = val.tv_sec;
t = gmtime(&gmt);
if (elm_datetime_value_set(obj, t)) return EINA_TRUE;

View File

@ -17,7 +17,7 @@ _color_change_do(void *data)
Evas_Object *obj = data;
int color;
color = (int)(long)evas_object_data_get(obj, "current_color");
color = (int)(uintptr_t)evas_object_data_get(obj, "current_color");
switch (color)
{
case 0: