summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-05-19 16:59:30 +0200
committerMarcel Holtmann <marcel@holtmann.org>2010-05-19 16:59:30 +0200
commite20bd41482accdcd76d46111cccebb2cea46bf8c (patch)
tree7d5f59b730604b8cc1281ccb21604c4fed9c0869
parent6aabc8a0de6aa88bf9f0f180027a9e69ecea781f (diff)
downloadbluez-e20bd41482accdcd76d46111cccebb2cea46bf8c.tar.gz
Add pragma based workaround for GStreamer warnings
-rw-r--r--Makefile.am2
-rw-r--r--audio/gsta2dpsink.c1
-rw-r--r--audio/gstavdtpsink.c1
-rw-r--r--audio/gstpragma.h24
-rw-r--r--audio/gstrtpsbcpay.c1
-rw-r--r--audio/gstsbcdec.c1
-rw-r--r--audio/gstsbcenc.c1
-rw-r--r--audio/gstsbcparse.c1
8 files changed, 31 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index f9911212d..93b499ab3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -255,7 +255,7 @@ gstreamerdir = $(libdir)/gstreamer-0.10
gstreamer_LTLIBRARIES = audio/libgstbluetooth.la
-audio_libgstbluetooth_la_SOURCES = audio/gstbluetooth.c \
+audio_libgstbluetooth_la_SOURCES = audio/gstbluetooth.c audio/gstpragma.h \
audio/gstsbcenc.h audio/gstsbcenc.c \
audio/gstsbcdec.h audio/gstsbcdec.c \
audio/gstsbcparse.h audio/gstsbcparse.c \
diff --git a/audio/gsta2dpsink.c b/audio/gsta2dpsink.c
index 52b65e596..492fc639e 100644
--- a/audio/gsta2dpsink.c
+++ b/audio/gsta2dpsink.c
@@ -28,6 +28,7 @@
#include <unistd.h>
#include <pthread.h>
+#include "gstpragma.h"
#include "gsta2dpsink.h"
GType gst_avdtp_sink_get_type(void);
diff --git a/audio/gstavdtpsink.c b/audio/gstavdtpsink.c
index 499864743..f0e5b76ac 100644
--- a/audio/gstavdtpsink.c
+++ b/audio/gstavdtpsink.c
@@ -40,6 +40,7 @@
#include "ipc.h"
#include "rtp.h"
+#include "gstpragma.h"
#include "gstavdtpsink.h"
GST_DEBUG_CATEGORY_STATIC(avdtp_sink_debug);
diff --git a/audio/gstpragma.h b/audio/gstpragma.h
new file mode 100644
index 000000000..00eb40838
--- /dev/null
+++ b/audio/gstpragma.h
@@ -0,0 +1,24 @@
+/*
+ *
+ * BlueZ - Bluetooth protocol stack for Linux
+ *
+ * Copyright (C) 2004-2010 Marcel Holtmann <marcel@holtmann.org>
+ *
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ */
+
+#pragma GCC diagnostic warning "-Wmissing-declarations"
diff --git a/audio/gstrtpsbcpay.c b/audio/gstrtpsbcpay.c
index 07fbe4fd8..1159bfedf 100644
--- a/audio/gstrtpsbcpay.c
+++ b/audio/gstrtpsbcpay.c
@@ -25,6 +25,7 @@
#include <config.h>
#endif
+#include "gstpragma.h"
#include "gstrtpsbcpay.h"
#include <math.h>
#include <string.h>
diff --git a/audio/gstsbcdec.c b/audio/gstsbcdec.c
index 13f7f2a21..2e5cb0a90 100644
--- a/audio/gstsbcdec.c
+++ b/audio/gstsbcdec.c
@@ -27,6 +27,7 @@
#include <string.h>
+#include "gstpragma.h"
#include "gstsbcutil.h"
#include "gstsbcdec.h"
diff --git a/audio/gstsbcenc.c b/audio/gstsbcenc.c
index 5a98565c2..d2de4ee39 100644
--- a/audio/gstsbcenc.c
+++ b/audio/gstsbcenc.c
@@ -27,6 +27,7 @@
#include <string.h>
+#include "gstpragma.h"
#include "gstsbcutil.h"
#include "gstsbcenc.h"
diff --git a/audio/gstsbcparse.c b/audio/gstsbcparse.c
index ff27ad9a2..a44b52c9e 100644
--- a/audio/gstsbcparse.c
+++ b/audio/gstsbcparse.c
@@ -27,6 +27,7 @@
#include <string.h>
+#include "gstpragma.h"
#include "gstsbcutil.h"
#include "gstsbcparse.h"