jpeg pushed a commit to branch master.

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

commit 4943fe3a0d86878850435237c4cf8c437107fb9f
Author: Jean-Philippe Andre <jp.an...@samsung.com>
Date:   Tue Dec 15 14:12:43 2015 +0900

    Evas GL: Fix clang warnings
    
    Use pragma diagnostic like with GCC since we want to set the function
    pointer even though we deprecate the function.
---
 src/modules/evas/engines/gl_common/evas_gl_api_ext_def.h | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/modules/evas/engines/gl_common/evas_gl_api_ext_def.h 
b/src/modules/evas/engines/gl_common/evas_gl_api_ext_def.h
index 0bc3e72..6d4ea48 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_api_ext_def.h
+++ b/src/modules/evas/engines/gl_common/evas_gl_api_ext_def.h
@@ -1468,9 +1468,14 @@ _EVASGL_EXT_END()
 
 // Disable warnings about deprecated functions here
 #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)
-#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+# pragma GCC diagnostic push
+# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+#elif defined(__clang__)
+# pragma clang diagnostic push
+# pragma clang diagnostic ignored "-Wdeprecated-declarations"
 #endif
 
+
 _EVASGL_EXT_BEGIN(EGL_KHR_image_base)
 
        _EVASGL_EXT_DRVNAME(EGL_KHR_image_base)
@@ -1503,7 +1508,9 @@ _EVASGL_EXT_BEGIN(EGL_KHR_image_base)
 _EVASGL_EXT_END()
 
 #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)
-#pragma GCC diagnostic pop
+# pragma GCC diagnostic pop
+#elif defined(__clang__)
+# pragma clang diagnostic pop
 #endif
 
 

-- 


Reply via email to