Add pragma based workaround for GStreamer warnings

This commit is contained in:
Marcel Holtmann 2010-05-19 16:59:30 +02:00
parent 6aabc8a0de
commit e20bd41482
8 changed files with 31 additions and 1 deletions

View File

@ -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 \

View File

@ -28,6 +28,7 @@
#include <unistd.h>
#include <pthread.h>
#include "gstpragma.h"
#include "gsta2dpsink.h"
GType gst_avdtp_sink_get_type(void);

View File

@ -40,6 +40,7 @@
#include "ipc.h"
#include "rtp.h"
#include "gstpragma.h"
#include "gstavdtpsink.h"
GST_DEBUG_CATEGORY_STATIC(avdtp_sink_debug);

24
audio/gstpragma.h Normal file
View File

@ -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"

View File

@ -25,6 +25,7 @@
#include <config.h>
#endif
#include "gstpragma.h"
#include "gstrtpsbcpay.h"
#include <math.h>
#include <string.h>

View File

@ -27,6 +27,7 @@
#include <string.h>
#include "gstpragma.h"
#include "gstsbcutil.h"
#include "gstsbcdec.h"

View File

@ -27,6 +27,7 @@
#include <string.h>
#include "gstpragma.h"
#include "gstsbcutil.h"
#include "gstsbcenc.h"

View File

@ -27,6 +27,7 @@
#include <string.h>
#include "gstpragma.h"
#include "gstsbcutil.h"
#include "gstsbcparse.h"