summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-12-15 14:12:43 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-12-15 14:35:38 +0900
commit4943fe3a0d86878850435237c4cf8c437107fb9f (patch)
tree82357bf895bc3979916de5a17de6b9867d812faa
parent9e68f0524b00e16b9e1c1f21f57d37b6b919b1ae (diff)
downloadefl-4943fe3a0d86878850435237c4cf8c437107fb9f.tar.gz
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.
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_api_ext_def.h11
1 files 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 0bc3e728d3..6d4ea485a3 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