summaryrefslogtreecommitdiff
path: root/src/modules/prefs
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-06-11 14:04:48 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-06-11 14:25:47 +0900
commit0be8fbac975e6dc30e488ef9ada7bcb636153df7 (patch)
tree6a91923de14d77fd747ccdff6ae8e0120a9dd515 /src/modules/prefs
parent014d2638c3514c18e21adc4bc725e2ea983b9d05 (diff)
Win32: Fix some compilation warnings
Reported by vtorri, thanks
Diffstat (limited to 'src/modules/prefs')
-rw-r--r--src/modules/prefs/elm_datetime.c5
-rw-r--r--src/modules/prefs/elm_entry.c2
2 files changed, 4 insertions, 3 deletions
diff --git a/src/modules/prefs/elm_datetime.c b/src/modules/prefs/elm_datetime.c
index 10cd219d5..72c9f791f 100644
--- a/src/modules/prefs/elm_datetime.c
+++ b/src/modules/prefs/elm_datetime.c
@@ -55,13 +55,14 @@ elm_prefs_datetime_value_set(Evas_Object *obj,
55{ 55{
56 struct timeval val; 56 struct timeval val;
57 struct tm *t; 57 struct tm *t;
58 time_t gmt;
58 59
59 if (eina_value_type_get(value) != EINA_VALUE_TYPE_TIMEVAL) 60 if (eina_value_type_get(value) != EINA_VALUE_TYPE_TIMEVAL)
60 return EINA_FALSE; 61 return EINA_FALSE;
61 62
62 eina_value_get(value, &val); 63 eina_value_get(value, &val);
63 64 gmt = val.tv_sec;
64 t = gmtime(&(val.tv_sec)); 65 t = gmtime(&gmt);
65 66
66 if (elm_datetime_value_set(obj, t)) return EINA_TRUE; 67 if (elm_datetime_value_set(obj, t)) return EINA_TRUE;
67 68
diff --git a/src/modules/prefs/elm_entry.c b/src/modules/prefs/elm_entry.c
index 6bbf9f8ca..e6cf68f14 100644
--- a/src/modules/prefs/elm_entry.c
+++ b/src/modules/prefs/elm_entry.c
@@ -17,7 +17,7 @@ _color_change_do(void *data)
17 Evas_Object *obj = data; 17 Evas_Object *obj = data;
18 int color; 18 int color;
19 19
20 color = (int)(long)evas_object_data_get(obj, "current_color"); 20 color = (int)(uintptr_t)evas_object_data_get(obj, "current_color");
21 switch (color) 21 switch (color)
22 { 22 {
23 case 0: 23 case 0: