eglglessink: silence warnings building for RPI related to 'vcos_*'
authorJosep Torra <n770galaxy@gmail.com>
Thu, 18 Apr 2013 10:24:18 +0000 (12:24 +0200)
committerJosep Torra <n770galaxy@gmail.com>
Thu, 18 Apr 2013 10:53:28 +0000 (12:53 +0200)
ext/eglgles/gstegladaptation.h
ext/eglgles/gsteglglessink.c
ext/eglgles/video_platform_wrapper.c

index e30b57042786784986e1e6c2e24c0924592bc174..b4eef2ba063d9d032f651964c2edaa489cfabec2 100644 (file)
 #  include <config.h>
 #endif
 
 #  include <config.h>
 #endif
 
+#include <gst/gst.h>
+#include <gst/video/gstvideopool.h>
+
+#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
 
 #define EGL_EGLEXT_PROTOTYPES
 #define GL_GLEXT_PROTOTYPES
 
-#include <gst/gst.h>
 #include <gst/egl/egl.h>
 #include <gst/egl/egl.h>
-#include <gst/video/gstvideopool.h>
 
 #ifdef HAVE_IOS
 #include <OpenGLES/ES2/gl.h>
 
 #ifdef HAVE_IOS
 #include <OpenGLES/ES2/gl.h>
-
 #else
 #include <EGL/egl.h>
 #include <EGL/eglext.h>
 #else
 #include <EGL/egl.h>
 #include <EGL/eglext.h>
 #include <GLES2/gl2ext.h>
 #endif
 
 #include <GLES2/gl2ext.h>
 #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[] = {
 #define GST_EGLGLESSINK_EGL_MIN_VERSION 1
 
 static const EGLint eglglessink_RGBA8888_attribs[] = {
index a202f90b32ab9e933e2ed4a635140f781fce05c2..0c4ac17ee02cf7839bfcd06eefb3b74bb9318709 100644 (file)
 #include <gst/video/gstvideometa.h>
 #include <gst/video/gstvideopool.h>
 #include <gst/video/videooverlay.h>
 #include <gst/video/gstvideometa.h>
 #include <gst/video/gstvideopool.h>
 #include <gst/video/videooverlay.h>
-#include <gst/egl/egl.h>
 
 
-#include <EGL/egl.h>
-#include <EGL/eglext.h>
-#include <GLES2/gl2.h>
-#include <GLES2/gl2ext.h>
+#include "gstegladaptation.h"
 
 #ifdef USE_EGL_RPI
 #include <bcm_host.h>
 #endif
 
 
 #ifdef USE_EGL_RPI
 #include <bcm_host.h>
 #endif
 
-#include "gstegladaptation.h"
 #include "gsteglglessink.h"
 
 GST_DEBUG_CATEGORY_STATIC (gst_eglglessink_debug);
 #include "gsteglglessink.h"
 
 GST_DEBUG_CATEGORY_STATIC (gst_eglglessink_debug);
index 0cc1eb499bd0ca9e0c373826c36a33e242e4415f..0482a8fd7e0fd01648d86a503d0de94706960459 100644 (file)
 #  include <config.h>
 #endif
 
 #  include <config.h>
 #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 <EGL/egl.h>
 #define EGL_EGLEXT_PROTOTYPES
 #define GL_GLEXT_PROTOTYPES
 #include <EGL/egl.h>
 #include <GLES2/gl2.h>
 #include <GLES2/gl2ext.h>
 
 #include <GLES2/gl2.h>
 #include <GLES2/gl2ext.h>
 
+#if defined (USE_EGL_RPI) && defined(__GNUC__)
+#pragma GCC reset_options
+#pragma GCC diagnostic pop
+#endif
+
 #include <string.h>
 
 #include <gst/gst.h>
 #include <string.h>
 
 #include <gst/gst.h>