mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
Add -Wredundant-decls to warning flags
... and fix all the warnings that flag throws.
This commit is contained in:
parent
43b1683421
commit
3a7d632a59
8 changed files with 7 additions and 18 deletions
|
@ -308,10 +308,10 @@ dnl set location of plugin directory
|
||||||
AG_GST_SET_PLUGINDIR
|
AG_GST_SET_PLUGINDIR
|
||||||
|
|
||||||
dnl define an ERROR_CFLAGS Makefile variable
|
dnl define an ERROR_CFLAGS Makefile variable
|
||||||
AG_GST_SET_ERROR_CFLAGS($GST_GIT, [-Wmissing-declarations -Wmissing-prototypes])
|
AG_GST_SET_ERROR_CFLAGS($GST_GIT, [-Wmissing-declarations -Wmissing-prototypes -Wredundant-decls])
|
||||||
|
|
||||||
dnl define an ERROR_CXXFLAGS Makefile variable
|
dnl define an ERROR_CXXFLAGS Makefile variable
|
||||||
AG_GST_SET_ERROR_CXXFLAGS($GST_GIT, [-Wmissing-declarations -Wmissing-prototypes])
|
AG_GST_SET_ERROR_CXXFLAGS($GST_GIT, [-Wmissing-declarations -Wmissing-prototypes -Wredundant-decls])
|
||||||
|
|
||||||
dnl define correct level for debugging messages
|
dnl define correct level for debugging messages
|
||||||
AG_GST_SET_LEVEL_DEFAULT($GST_GIT)
|
AG_GST_SET_LEVEL_DEFAULT($GST_GIT)
|
||||||
|
|
|
@ -116,8 +116,6 @@ static gboolean gst_ogg_demux_perform_seek (GstOggDemux * ogg,
|
||||||
static gboolean gst_ogg_demux_receive_event (GstElement * element,
|
static gboolean gst_ogg_demux_receive_event (GstElement * element,
|
||||||
GstEvent * event);
|
GstEvent * event);
|
||||||
|
|
||||||
static void gst_ogg_pad_class_init (GstOggPadClass * klass);
|
|
||||||
static void gst_ogg_pad_init (GstOggPad * pad);
|
|
||||||
static void gst_ogg_pad_dispose (GObject * object);
|
static void gst_ogg_pad_dispose (GObject * object);
|
||||||
static void gst_ogg_pad_finalize (GObject * object);
|
static void gst_ogg_pad_finalize (GObject * object);
|
||||||
|
|
||||||
|
|
|
@ -101,7 +101,6 @@ static void theora_parse_get_property (GObject * object, guint prop_id,
|
||||||
static void theora_parse_set_property (GObject * object, guint prop_id,
|
static void theora_parse_set_property (GObject * object, guint prop_id,
|
||||||
const GValue * value, GParamSpec * pspec);
|
const GValue * value, GParamSpec * pspec);
|
||||||
|
|
||||||
static gboolean theora_parse_src_query (GstPad * pad, GstQuery * query);
|
|
||||||
static GstFlowReturn theora_parse_chain (GstPad * pad, GstBuffer * buffer);
|
static GstFlowReturn theora_parse_chain (GstPad * pad, GstBuffer * buffer);
|
||||||
static GstStateChangeReturn theora_parse_change_state (GstElement * element,
|
static GstStateChangeReturn theora_parse_change_state (GstElement * element,
|
||||||
GstStateChange transition);
|
GstStateChange transition);
|
||||||
|
|
|
@ -60,10 +60,6 @@
|
||||||
GST_DEBUG_CATEGORY_EXTERN (vorbisparse_debug);
|
GST_DEBUG_CATEGORY_EXTERN (vorbisparse_debug);
|
||||||
#define GST_CAT_DEFAULT vorbisparse_debug
|
#define GST_CAT_DEFAULT vorbisparse_debug
|
||||||
|
|
||||||
static void gst_vorbis_tag_base_init (gpointer g_class);
|
|
||||||
static void gst_vorbis_tag_class_init (GstVorbisTagClass * klass);
|
|
||||||
static void gst_vorbis_tag_init (GstVorbisTag * tagger,
|
|
||||||
GstVorbisTagClass * g_class);
|
|
||||||
static GstFlowReturn gst_vorbis_tag_parse_packet (GstVorbisParse * parse,
|
static GstFlowReturn gst_vorbis_tag_parse_packet (GstVorbisParse * parse,
|
||||||
GstBuffer * buffer);
|
GstBuffer * buffer);
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,9 @@
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
#include <gst/audio/multichannel.h>
|
#include <gst/audio/multichannel.h>
|
||||||
|
|
||||||
|
GST_DEBUG_CATEGORY_EXTERN (audio_convert_debug);
|
||||||
|
#define GST_CAT_DEFAULT (audio_convert_debug)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GstAudioConvertDithering:
|
* GstAudioConvertDithering:
|
||||||
* @DITHER_NONE: No dithering
|
* @DITHER_NONE: No dithering
|
||||||
|
|
|
@ -23,9 +23,6 @@
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
#include "audioconvert.h"
|
#include "audioconvert.h"
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY_EXTERN (audio_convert_debug);
|
|
||||||
#define GST_CAT_DEFAULT (audio_convert_debug)
|
|
||||||
|
|
||||||
#ifndef __GST_AUDIO_QUANTIZE_H__
|
#ifndef __GST_AUDIO_QUANTIZE_H__
|
||||||
#define __GST_AUDIO_QUANTIZE_H__
|
#define __GST_AUDIO_QUANTIZE_H__
|
||||||
|
|
||||||
|
|
|
@ -25,9 +25,6 @@
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
#include "audioconvert.h"
|
#include "audioconvert.h"
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY_EXTERN (audio_convert_debug);
|
|
||||||
#define GST_CAT_DEFAULT (audio_convert_debug)
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Delete channel mixer matrix.
|
* Delete channel mixer matrix.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -204,8 +204,6 @@ enum
|
||||||
LAST_SIGNAL
|
LAST_SIGNAL
|
||||||
};
|
};
|
||||||
|
|
||||||
static void gst_play_sink_class_init (GstPlaySinkClass * klass);
|
|
||||||
static void gst_play_sink_init (GstPlaySink * playsink);
|
|
||||||
static void gst_play_sink_dispose (GObject * object);
|
static void gst_play_sink_dispose (GObject * object);
|
||||||
static void gst_play_sink_finalize (GObject * object);
|
static void gst_play_sink_finalize (GObject * object);
|
||||||
static void gst_play_sink_set_property (GObject * object, guint prop_id,
|
static void gst_play_sink_set_property (GObject * object, guint prop_id,
|
||||||
|
@ -2072,7 +2070,8 @@ gst_play_sink_reconfigure (GstPlaySink * playsink)
|
||||||
if (playsink->textchain) {
|
if (playsink->textchain) {
|
||||||
GST_DEBUG_OBJECT (playsink, "adding text chain");
|
GST_DEBUG_OBJECT (playsink, "adding text chain");
|
||||||
if (playsink->textchain->overlay)
|
if (playsink->textchain->overlay)
|
||||||
g_object_set (G_OBJECT (playsink->textchain->overlay), "silent", FALSE, NULL);
|
g_object_set (G_OBJECT (playsink->textchain->overlay), "silent", FALSE,
|
||||||
|
NULL);
|
||||||
add_chain (GST_PLAY_CHAIN (playsink->textchain), TRUE);
|
add_chain (GST_PLAY_CHAIN (playsink->textchain), TRUE);
|
||||||
|
|
||||||
gst_ghost_pad_set_target (GST_GHOST_PAD_CAST (playsink->text_pad),
|
gst_ghost_pad_set_target (GST_GHOST_PAD_CAST (playsink->text_pad),
|
||||||
|
|
Loading…
Reference in a new issue