Add -Wmissing-declarations -Wmissing-prototypes to configure flags
authorBenjamin Otte <otte@redhat.com>
Sun, 21 Mar 2010 20:39:18 +0000 (21:39 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 12 Apr 2011 19:32:17 +0000 (20:32 +0100)
And fix all warnings

gst/quicktime/atoms.c
gst/quicktime/atoms.h
gst/quicktime/atomsrecovery.c
gst/quicktime/descriptors.c
tests/check/elements/qtmux.c
tests/check/pipelines/tagschecking.c

index 99b02ef..841900d 100644 (file)
@@ -341,15 +341,15 @@ atom_edts_clear (AtomEDTS * edts)
   atom_elst_clear (&edts->elst);
 }
 
-AtomEDTS *
-atom_edts_new ()
+static AtomEDTS *
+atom_edts_new (void)
 {
   AtomEDTS *edts = g_new0 (AtomEDTS, 1);
   atom_edts_init (edts);
   return edts;
 }
 
-void
+static void
 atom_edts_free (AtomEDTS * edts)
 {
   atom_edts_clear (edts);
@@ -3014,7 +3014,7 @@ atom_trak_set_audio_type (AtomTRAK * trak, AtomsContext * context,
   atom_trak_set_constant_size_samples (trak, sample_size);
 }
 
-AtomInfo *
+static AtomInfo *
 build_pasp_extension (AtomTRAK * trak, gint par_width, gint par_height)
 {
   AtomData *atom_data;
@@ -3378,7 +3378,7 @@ build_codec_data_extension (guint32 fourcc, const GstBuffer * codec_data)
 }
 
 AtomInfo *
-build_amr_extension ()
+build_amr_extension (void)
 {
   guint8 ext[9];
   GstBuffer *buf;
@@ -3405,7 +3405,7 @@ build_amr_extension ()
 }
 
 AtomInfo *
-build_h263_extension ()
+build_h263_extension (void)
 {
   guint8 ext[7];
   GstBuffer *buf;
index ae167ba..85a41d3 100644 (file)
@@ -731,8 +731,8 @@ AtomInfo *   build_jp2h_extension        (AtomTRAK * trak, gint width, gint heig
 
 AtomInfo *   build_jp2x_extension        (const GstBuffer * prefix);
 AtomInfo *   build_fiel_extension        (gint fields);
-AtomInfo *   build_amr_extension         ();
-AtomInfo *   build_h263_extension        ();
+AtomInfo *   build_amr_extension         (void);
+AtomInfo *   build_h263_extension        (void);
 AtomInfo *   build_gama_atom             (gdouble gamma);
 AtomInfo *   build_SMI_atom              (const GstBuffer *seqh);
 AtomInfo *   build_ima_adpcm_extension   (gint channels, gint rate,
index 907683e..c9684b1 100644 (file)
@@ -794,7 +794,7 @@ moov_recov_parse_buffers (MoovRecovFile * moovrf, MdatRecovFile * mdatrf,
   return TRUE;
 }
 
-guint32
+static guint32
 trak_recov_data_get_trak_atom_size (TrakRecovData * trak)
 {
   AtomSTBL *stbl = &trak->stbl;
@@ -832,7 +832,7 @@ fail:
   return 0;
 }
 
-guint8 *
+static guint8 *
 moov_recov_get_stbl_children_data (MoovRecovFile * moovrf, TrakRecovData * trak,
     guint64 * p_size)
 {
index f450fce..d1e99c2 100644 (file)
@@ -206,13 +206,6 @@ desc_es_descriptor_clear (ESDescriptor * es)
   desc_sl_config_descriptor_clear (&es->sl_conf_desc);
 }
 
-void
-desc_es_descriptor_free (ESDescriptor * es)
-{
-  desc_es_descriptor_clear (es);
-  g_free (es);
-}
-
 /*
  * Size handling functions below
  */
index bd88b19..0c05818 100644 (file)
@@ -56,7 +56,7 @@ static GstStaticPadTemplate srcaudiotemplate = GST_STATIC_PAD_TEMPLATE ("src",
 
 
 /* setup and teardown needs some special handling for muxer */
-GstPad *
+static GstPad *
 setup_src_pad (GstElement * element,
     GstStaticPadTemplate * template, GstCaps * caps, gchar * sinkname)
 {
@@ -86,7 +86,7 @@ setup_src_pad (GstElement * element,
   return srcpad;
 }
 
-void
+static void
 teardown_src_pad (GstPad * srcpad)
 {
   GstPad *sinkpad;
@@ -110,7 +110,7 @@ teardown_src_pad (GstPad * srcpad)
   gst_object_unref (srcpad);
 }
 
-GstElement *
+static GstElement *
 setup_qtmux (GstStaticPadTemplate * srctemplate, gchar * sinkname)
 {
   GstElement *qtmux;
@@ -125,7 +125,7 @@ setup_qtmux (GstStaticPadTemplate * srctemplate, gchar * sinkname)
   return qtmux;
 }
 
-void
+static void
 cleanup_qtmux (GstElement * qtmux, gchar * sinkname)
 {
   GST_DEBUG ("cleanup_qtmux");
@@ -138,7 +138,7 @@ cleanup_qtmux (GstElement * qtmux, gchar * sinkname)
   gst_check_teardown_element (qtmux);
 }
 
-void
+static void
 check_qtmux_pad (GstStaticPadTemplate * srctemplate, gchar * sinkname)
 {
   GstElement *qtmux;
@@ -232,7 +232,7 @@ GST_START_TEST (test_audio_pad)
 GST_END_TEST;
 
 
-Suite *
+static Suite *
 qtmux_suite (void)
 {
   Suite *s = suite_create ("qtmux");
index 20bdcc8..9aa7ffa 100644 (file)
@@ -275,7 +275,7 @@ GST_START_TEST (test_geo_location_tags)
 
 GST_END_TEST;
 
-Suite *
+static Suite *
 metadata_suite (void)
 {
   Suite *s = suite_create ("tagschecking");