From: Josep Torra Date: Thu, 18 Apr 2013 10:24:18 +0000 (+0200) Subject: eglglessink: silence warnings building for RPI related to 'vcos_*' X-Git-Tag: 1.19.3~507^2~13783 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1190a79b199584cfc4dd62c474531c32cfbba425;p=platform%2Fupstream%2Fgstreamer.git eglglessink: silence warnings building for RPI related to 'vcos_*' --- diff --git a/ext/eglgles/gstegladaptation.h b/ext/eglgles/gstegladaptation.h index e30b570427..b4eef2ba06 100644 --- a/ext/eglgles/gstegladaptation.h +++ b/ext/eglgles/gstegladaptation.h @@ -51,16 +51,26 @@ # include #endif +#include +#include + +#if defined (USE_EGL_RPI) && defined(__GNUC__) +#ifndef __VCCOREVER__ +#define __VCCOREVER__ 0x04000000 +#endif + +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wredundant-decls" +#pragma GCC optimize ("gnu89-inline") +#endif + #define EGL_EGLEXT_PROTOTYPES #define GL_GLEXT_PROTOTYPES -#include #include -#include #ifdef HAVE_IOS #include - #else #include #include @@ -68,6 +78,11 @@ #include #endif +#if defined (USE_EGL_RPI) && defined(__GNUC__) +#pragma GCC reset_options +#pragma GCC diagnostic pop +#endif + #define GST_EGLGLESSINK_EGL_MIN_VERSION 1 static const EGLint eglglessink_RGBA8888_attribs[] = { diff --git a/ext/eglgles/gsteglglessink.c b/ext/eglgles/gsteglglessink.c index a202f90b32..0c4ac17ee0 100644 --- a/ext/eglgles/gsteglglessink.c +++ b/ext/eglgles/gsteglglessink.c @@ -123,18 +123,13 @@ #include #include #include -#include -#include -#include -#include -#include +#include "gstegladaptation.h" #ifdef USE_EGL_RPI #include #endif -#include "gstegladaptation.h" #include "gsteglglessink.h" GST_DEBUG_CATEGORY_STATIC (gst_eglglessink_debug); diff --git a/ext/eglgles/video_platform_wrapper.c b/ext/eglgles/video_platform_wrapper.c index 0cc1eb499b..0482a8fd7e 100644 --- a/ext/eglgles/video_platform_wrapper.c +++ b/ext/eglgles/video_platform_wrapper.c @@ -46,6 +46,16 @@ # include #endif +#if defined (USE_EGL_RPI) && defined(__GNUC__) +#ifndef __VCCOREVER__ +#define __VCCOREVER__ 0x04000000 +#endif + +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wredundant-decls" +#pragma GCC optimize ("gnu89-inline") +#endif + #define EGL_EGLEXT_PROTOTYPES #define GL_GLEXT_PROTOTYPES #include @@ -53,6 +63,11 @@ #include #include +#if defined (USE_EGL_RPI) && defined(__GNUC__) +#pragma GCC reset_options +#pragma GCC diagnostic pop +#endif + #include #include