jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=b96b2aafcbda112f8e0f8a3a4007318226996120

commit b96b2aafcbda112f8e0f8a3a4007318226996120
Author: Jean-Philippe Andre <jp.an...@samsung.com>
Date:   Thu Nov 3 17:11:32 2016 +0900

    evas: Fix warning with va_start in internal EAPI
    
    Clang 3.9.0 told me:
      warning: passing an object that undergoes default argument
      promotion to 'va_start' has undefined behavior [-Wvarargs]
    
    So I told it to shut up and changed Eina_Bool to int.
    
    Note that edje_edit_state_external_param_set has the same issue.
---
 src/lib/evas/Evas_Legacy.h                  | 2 +-
 src/lib/evas/canvas/evas_object_intercept.c | 2 +-
 src/lib/evas/filters/evas_filter_parser.c   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/lib/evas/Evas_Legacy.h b/src/lib/evas/Evas_Legacy.h
index 6a4833c..f385d00 100644
--- a/src/lib/evas/Evas_Legacy.h
+++ b/src/lib/evas/Evas_Legacy.h
@@ -2518,7 +2518,7 @@ enum _Evas_Object_Intercept_Cb_Type
 };
 typedef enum _Evas_Object_Intercept_Cb_Type Evas_Object_Intercept_Cb_Type;
 
-EWAPI Eina_Bool _evas_object_intercept_call(Evas_Object *obj, 
Evas_Object_Intercept_Cb_Type type, Eina_Bool internal, ...);
+EWAPI Eina_Bool _evas_object_intercept_call(Evas_Object *obj, 
Evas_Object_Intercept_Cb_Type type, int internal, ...);
 
 #endif
 
diff --git a/src/lib/evas/canvas/evas_object_intercept.c 
b/src/lib/evas/canvas/evas_object_intercept.c
index 38e016e..7bca4a7 100644
--- a/src/lib/evas/canvas/evas_object_intercept.c
+++ b/src/lib/evas/canvas/evas_object_intercept.c
@@ -88,7 +88,7 @@ EVAS_OBJECT_INTERCEPT_CALL(clip_set,    (COMMON_ARGS, 
Evas_Object *clip), UNPACK
  */
 EWAPI Eina_Bool
 _evas_object_intercept_call(Evas_Object *eo_obj, Evas_Object_Intercept_Cb_Type 
cb_type,
-                            Eina_Bool internal, ...)
+                            int internal, ...)
 {
    Evas_Object_Protected_Data *obj = efl_data_scope_get(eo_obj, 
EFL_CANVAS_OBJECT_CLASS);
    Eina_Bool blocked = 0;
diff --git a/src/lib/evas/filters/evas_filter_parser.c 
b/src/lib/evas/filters/evas_filter_parser.c
index d958093..6ccb649 100644
--- a/src/lib/evas/filters/evas_filter_parser.c
+++ b/src/lib/evas/filters/evas_filter_parser.c
@@ -422,7 +422,7 @@ _instruction_param_addv(Evas_Filter_Instruction *instr, 
const char *name,
 
 static Eina_Bool
 _instruction_param_adda(Evas_Filter_Instruction *instr, const char *name,
-                        Value_Type format, Eina_Bool sequential,
+                        Value_Type format, int sequential,
                         /* default value */ ...)
 {
    Eina_Bool ok;

-- 


Reply via email to