summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosep Torra <n770galaxy@gmail.com>2013-04-18 12:03:31 +0200
committerJosep Torra <n770galaxy@gmail.com>2013-04-18 12:03:31 +0200
commit4974f75d916e703cb78244154218cf700a1567fd (patch)
tree9a8588af0a8177307c636d66fadd4b7efa09c823
parentae3454683ecb52a8fbf1f3b65fea514e730a8c3a (diff)
omxvideodec: silence warnings building for RPI related to 'vcos_*'
-rw-r--r--omx/gstomxvideodec.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/omx/gstomxvideodec.c b/omx/gstomxvideodec.c
index ae798f9..27c443d 100644
--- a/omx/gstomxvideodec.c
+++ b/omx/gstomxvideodec.c
@@ -27,7 +27,24 @@
#include <gst/gst.h>
#include <gst/video/gstvideometa.h>
#include <gst/video/gstvideopool.h>
+
+#if defined (USE_OMX_TARGET_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
+
#include <gst/egl/egl.h>
+
+#if defined (USE_OMX_TARGET_RPI) && defined(__GNUC__)
+#pragma GCC reset_options
+#pragma GCC diagnostic pop
+#endif
+
#include <string.h>
#include "gstomxvideodec.h"