summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2019-06-19 10:19:49 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-06-19 10:19:49 +0200
commit2b7d26790acc3f523a50a1ea9f5bff70a54dffad (patch)
tree241c0870cb331639b2087a71b5269b69aadf32d5
parent969c7f72877c3cd67fcbaf947d9873bf442402de (diff)
Fix miscellaneous build warnings
Nothing serious, but they were driving me mad.
-rw-r--r--src/examples/elementary/toolbar_cxx_example_01.cc2
-rw-r--r--src/lib/elementary/elm_slider.c2
-rw-r--r--src/lib/evas/common/evas_scale_sample.c2
-rw-r--r--src/tests/ecore/ecore_test_ecore_thread_eina_thread_queue.c3
-rw-r--r--src/tests/efl/efl_test_composite_model.c6
5 files changed, 8 insertions, 7 deletions
diff --git a/src/examples/elementary/toolbar_cxx_example_01.cc b/src/examples/elementary/toolbar_cxx_example_01.cc
index a32f492..278a1bf 100644
--- a/src/examples/elementary/toolbar_cxx_example_01.cc
+++ b/src/examples/elementary/toolbar_cxx_example_01.cc
@@ -11,7 +11,7 @@
11#include <Efl_Ui.hh> 11#include <Efl_Ui.hh>
12 12
13EAPI int 13EAPI int
14elm_main(int argc, char* argv[]) 14elm_main(int argc EINA_UNUSED, char* argv[] EINA_UNUSED)
15{ 15{
16 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN); 16 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN);
17 17
diff --git a/src/lib/elementary/elm_slider.c b/src/lib/elementary/elm_slider.c
index b1d8313..282b126 100644
--- a/src/lib/elementary/elm_slider.c
+++ b/src/lib/elementary/elm_slider.c
@@ -536,7 +536,7 @@ void
536_elm_slider_val_fetch(Evas_Object *obj, Elm_Slider_Data *pd, Eina_Bool user_event) 536_elm_slider_val_fetch(Evas_Object *obj, Elm_Slider_Data *pd, Eina_Bool user_event)
537{ 537{
538 double posx = 0.0, posy = 0.0, pos = 0.0, val; 538 double posx = 0.0, posy = 0.0, pos = 0.0, val;
539 double posx2 = 0.0, posy2 = 0.0, pos2 = 0.0, val2; 539 double posx2 = 0.0, posy2 = 0.0, pos2 = 0.0, val2 = 0.0;
540 Eina_Bool inverted = EINA_FALSE; 540 Eina_Bool inverted = EINA_FALSE;
541 Eina_Bool evented = EINA_FALSE; 541 Eina_Bool evented = EINA_FALSE;
542 542
diff --git a/src/lib/evas/common/evas_scale_sample.c b/src/lib/evas/common/evas_scale_sample.c
index c201dfb..136813e 100644
--- a/src/lib/evas/common/evas_scale_sample.c
+++ b/src/lib/evas/common/evas_scale_sample.c
@@ -103,7 +103,7 @@ _evas_common_scale_rgba_sample_scale_nomask(int y,
103 DATA32 *dptr, RGBA_Gfx_Func func, unsigned int mul_col, 103 DATA32 *dptr, RGBA_Gfx_Func func, unsigned int mul_col,
104 DATA32 *srcptr, int src_w) 104 DATA32 *srcptr, int src_w)
105{ 105{
106 DATA32 *buf; 106 DATA32 *buf = NULL;
107 int x; 107 int x;
108 108
109 /* a scanline buffer */ 109 /* a scanline buffer */
diff --git a/src/tests/ecore/ecore_test_ecore_thread_eina_thread_queue.c b/src/tests/ecore/ecore_test_ecore_thread_eina_thread_queue.c
index cc1ddb1..cb3985b 100644
--- a/src/tests/ecore/ecore_test_ecore_thread_eina_thread_queue.c
+++ b/src/tests/ecore/ecore_test_ecore_thread_eina_thread_queue.c
@@ -657,7 +657,8 @@ EFL_START_TEST(ecore_test_ecore_thread_eina_thread_queue_t7)
657 { 657 {
658 char buf; 658 char buf;
659 659
660 read(p[0], &buf, 1); 660 if (read(p[0], &buf, 1) != 1)
661 if (DEBUG) printf("Error reading from pipe\n");
661 msg = eina_thread_queue_wait(thq1, &ref); 662 msg = eina_thread_queue_wait(thq1, &ref);
662 if (msg) 663 if (msg)
663 { 664 {
diff --git a/src/tests/efl/efl_test_composite_model.c b/src/tests/efl/efl_test_composite_model.c
index 48511a9..877410b 100644
--- a/src/tests/efl/efl_test_composite_model.c
+++ b/src/tests/efl/efl_test_composite_model.c
@@ -323,7 +323,7 @@ _count_changed(void *data, const Efl_Event *ev)
323{ 323{
324 Eina_Promise *p = data; 324 Eina_Promise *p = data;
325 325
326 if (efl_model_children_count_get(ev->object) != child_number) return ; 326 if (efl_model_children_count_get(ev->object) != (unsigned int)child_number) return ;
327 327
328 efl_event_callback_del(ev->object, EFL_MODEL_EVENT_CHILDREN_COUNT_CHANGED, 328 efl_event_callback_del(ev->object, EFL_MODEL_EVENT_CHILDREN_COUNT_CHANGED,
329 _count_changed, p); 329 _count_changed, p);
@@ -380,8 +380,8 @@ _check_index(Eo *o EINA_UNUSED, void *data EINA_UNUSED, const Eina_Value v)
380 idx = efl_composite_model_index_get(target); 380 idx = efl_composite_model_index_get(target);
381 p_original = efl_model_property_get(target, "original"); 381 p_original = efl_model_property_get(target, "original");
382 fail_if(!eina_value_uint64_convert(p_original, &original)); 382 fail_if(!eina_value_uint64_convert(p_original, &original));
383 ck_assert(original < child_number); 383 ck_assert(original < (uint64_t)child_number);
384 ck_assert(idx < child_number); 384 ck_assert(idx < (uint64_t)child_number);
385 385
386 eina_value_free(p_original); 386 eina_value_free(p_original);
387 } 387 }