forked from enlightenment/efl
Win32: Fix some compilation warnings
Reported by vtorri, thanks
This commit is contained in:
parent
36e153f956
commit
2ffb942d5a
|
@ -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);
|
||||
|
|
|
@ -891,6 +891,7 @@ elm_quicklaunch_prepare(int argc,
|
|||
#else
|
||||
(void)argc;
|
||||
(void)argv;
|
||||
(void)cwd;
|
||||
return EINA_FALSE;
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue