Evas GL: Fix clang warnings
authorJean-Philippe Andre <jp.andre@samsung.com>
Tue, 15 Dec 2015 05:12:43 +0000 (14:12 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Tue, 15 Dec 2015 05:35:38 +0000 (14:35 +0900)
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

index 0bc3e72..6d4ea48 100644 (file)
@@ -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