forked from enlightenment/efl
examples: fix various warnings in ecore and eina examples.
Signed-off-by: Cedric BAIL <cedric.bail@samsung.com>
This commit is contained in:
parent
c3d5ff9252
commit
2ed4a0510a
|
@ -98,7 +98,7 @@ _ecore_evas_msg_handle(Ecore_Evas *ee, int msg_domain, int msg_id, void *data, i
|
|||
printf("data len= (%d).\n", len);
|
||||
|
||||
text = ecore_evas_data_get(ee, "text");
|
||||
if (text && (size == strlen(txt)))
|
||||
if (text && (size == (int)strlen(txt)))
|
||||
{
|
||||
printf("Receive msg is text (%s).\n", txt);
|
||||
evas_object_text_text_set(text, txt);
|
||||
|
|
|
@ -78,7 +78,7 @@ main(void)
|
|||
if (childPid == -1)
|
||||
fprintf(stderr, "Could not retrive the PID!\n");
|
||||
else
|
||||
fprintf(stdout, "The child process has PID:%d\n", childPid);
|
||||
fprintf(stdout, "The child process has PID:%u\n", (unsigned int)childPid);
|
||||
|
||||
ecore_event_handler_add(ECORE_EXE_EVENT_DATA, _msg_from_child_handler, NULL);
|
||||
ecore_timer_add(1, _sendMessage, childHandle);
|
||||
|
|
|
@ -20,7 +20,7 @@ main(int argc, char **argv)
|
|||
iarr = eina_inarray_new(sizeof(char *), 0);
|
||||
|
||||
for (i = 0; i < 20; i++){
|
||||
str = &strings[i];
|
||||
str = (char **)(&strings[i]);
|
||||
eina_inarray_push(iarr, str);
|
||||
}
|
||||
|
||||
|
|
|
@ -48,13 +48,13 @@ main(int argc, char **argv)
|
|||
}
|
||||
|
||||
it = eina_array_iterator_new(array);
|
||||
eina_iterator_next(it, &uninteresting);
|
||||
eina_iterator_next(it, (void **)&uninteresting);
|
||||
print_eina_container(it);
|
||||
eina_array_free(eina_iterator_container_get(it));
|
||||
eina_iterator_free(it);
|
||||
|
||||
it = eina_list_iterator_new(list);
|
||||
eina_iterator_next(it, &uninteresting);
|
||||
eina_iterator_next(it, (void **)&uninteresting);
|
||||
print_eina_container(it);
|
||||
eina_iterator_free(it);
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ _tz_flush(const Eina_Value_Type *type, void *mem)
|
|||
static Eina_Bool
|
||||
_tz_copy(const Eina_Value_Type *type, const void *src, void * dst)
|
||||
{
|
||||
struct timezone *tzsrc = src;
|
||||
struct timezone *tzsrc = (struct timezone *)src;
|
||||
struct timezone *tzdst = dst;
|
||||
*tzdst = *tzsrc;
|
||||
return EINA_TRUE;
|
||||
|
|
Loading…
Reference in New Issue