From 1190a79b199584cfc4dd62c474531c32cfbba425 Mon Sep 17 00:00:00 2001 From: Josep Torra Date: Thu, 18 Apr 2013 12:24:18 +0200 Subject: [PATCH] eglglessink: silence warnings building for RPI related to 'vcos_*' --- ext/eglgles/gstegladaptation.h | 21 ++++++++++++++++++--- ext/eglgles/gsteglglessink.c | 7 +------ ext/eglgles/video_platform_wrapper.c | 15 +++++++++++++++ 3 files changed, 34 insertions(+), 9 deletions(-) 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 -- 2.34.1