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.
This commit is contained in:
Jean-Philippe Andre 2015-12-15 14:12:43 +09:00
parent 9e68f0524b
commit 4943fe3a0d
1 changed files with 9 additions and 2 deletions

View 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