zmike pushed a commit to branch master.

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

commit 512e37d02fc8ee37d0f3b541b3316775eda8f51b
Author: Xavi Artigas <xavierarti...@yahoo.es>
Date:   Thu Feb 14 15:33:55 2019 -0500

    Remove warnings when building without EFL_BETA_API_SUPPORT
    
    Summary:
    efl_alive_get should be a method defined in efl_object.eo, protected by
    EFL_BETA_API_SUPPORT while that class is still @beta.
    Instead, it is defined in Eo.h, so the BETA guard has to be defined 
manually.
    This was causing some unsighly warnings during "make" and "make check"
    (implicit declaration of function ‘efl_invalidating_get’)
    
    Test Plan: make && make check do not throw that warning anymore
    
    Reviewers: zmike, cedric
    
    Reviewed By: zmike
    
    Subscribers: #reviewers, #committers
    
    Tags: #efl
    
    Differential Revision: https://phab.enlightenment.org/D7958
---
 src/lib/eo/Eo.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/lib/eo/Eo.h b/src/lib/eo/Eo.h
index 403bef9925..7f90e79653 100644
--- a/src/lib/eo/Eo.h
+++ b/src/lib/eo/Eo.h
@@ -2231,6 +2231,7 @@ eina_value_object_get(Eina_Value *v)
    return r;
 }
 
+#ifdef EFL_BETA_API_SUPPORT
 /**
  * @brief Get if the object is in its main lifetime.
  * @param obj the object to check
@@ -2243,6 +2244,7 @@ efl_alive_get(const Eo *obj)
 {
   return efl_finalized_get(obj) && !efl_invalidating_get(obj) && 
!efl_invalidated_get(obj);
 }
+#endif /* EFL_BETA_API_SUPPORT */
 
 /**
  * @brief Event triggered when a callback was added to the object

-- 


Reply via email to