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 e30b570..b4eef2b 100644 (file)
 #  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
 
-#include <gst/gst.h>
 #include <gst/egl/egl.h>
-#include <gst/video/gstvideopool.h>
 
 #ifdef HAVE_IOS
 #include <OpenGLES/ES2/gl.h>
-
 #else
 #include <EGL/egl.h>
 #include <EGL/eglext.h>
 #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[] = {
index a202f90..0c4ac17 100644 (file)
 #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
 
-#include "gstegladaptation.h"
 #include "gsteglglessink.h"
 
 GST_DEBUG_CATEGORY_STATIC (gst_eglglessink_debug);
index 0cc1eb4..0482a8f 100644 (file)
 #  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>
 #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>