diff options
author | Benjamin Otte <otte@redhat.com> | 2010-03-21 21:39:18 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2010-03-21 21:39:18 +0100 |
commit | f96e4f15817974e8d3675bfe3980cdf02815bd74 (patch) | |
tree | 8eb2ba9bc6058e9a8d5ad2a46e6bd5034e3f3813 /gst/siren | |
parent | 46f4c7a6c127dbd20fd9f88a10518e084501cd36 (diff) | |
download | gstreamer-plugins-bad-f96e4f15817974e8d3675bfe3980cdf02815bd74.tar.gz |
Add -Wmissing-declarations -Wmissing-prototypes to configure flags
And fix all warnings
Diffstat (limited to 'gst/siren')
-rw-r--r-- | gst/siren/common.c | 2 | ||||
-rw-r--r-- | gst/siren/common.h | 2 | ||||
-rw-r--r-- | gst/siren/dct4.c | 2 | ||||
-rw-r--r-- | gst/siren/dct4.h | 2 | ||||
-rw-r--r-- | gst/siren/huffman.c | 2 | ||||
-rw-r--r-- | gst/siren/huffman.h | 2 | ||||
-rw-r--r-- | gst/siren/rmlt.c | 2 | ||||
-rw-r--r-- | gst/siren/rmlt.h | 2 |
8 files changed, 8 insertions, 8 deletions
diff --git a/gst/siren/common.c b/gst/siren/common.c index b968c5b4e..3146597de 100644 --- a/gst/siren/common.c +++ b/gst/siren/common.c @@ -65,7 +65,7 @@ static int siren_initialized = 0; #define STEPSIZE 0.3010299957 void -siren_init () +siren_init (void) { int i; float region_power; diff --git a/gst/siren/common.h b/gst/siren/common.h index 36416540c..a231de8af 100644 --- a/gst/siren/common.h +++ b/gst/siren/common.h @@ -100,7 +100,7 @@ extern float step_size_inverse[8]; -extern void siren_init(); +extern void siren_init(void); extern int categorize_regions(int number_of_regions, int number_of_available_bits, int *absolute_region_power_index, int *power_categories, int *category_balance); extern int GetSirenCodecInfo(int flag, int sample_rate, int *number_of_coefs, int *sample_rate_bits, int *rate_control_bits, int *rate_control_possibilities, int *checksum_bits, int *esf_adjustment, int *scale_factor, int *number_of_regions, int *sample_rate_code, int *bits_per_frame ); diff --git a/gst/siren/dct4.c b/gst/siren/dct4.c index 89a5d8a07..db2dfbad6 100644 --- a/gst/siren/dct4.c +++ b/gst/siren/dct4.c @@ -54,7 +54,7 @@ static dct_table_type *dct_tables[8] = { dct_table_5, static int dct4_initialized = 0; void -siren_dct4_init () +siren_dct4_init (void) { int i, j = 0; double scale_320 = (float) sqrt (2.0 / 320); diff --git a/gst/siren/dct4.h b/gst/siren/dct4.h index 6394b1312..5bdd0e07a 100644 --- a/gst/siren/dct4.h +++ b/gst/siren/dct4.h @@ -23,7 +23,7 @@ #ifndef _SIREN7_DCT4_H_ #define _SIREN7_DCT4_H_ -extern void siren_dct4_init(); +extern void siren_dct4_init(void); extern void siren_dct4(float *Source, float *Destination, int dct_length); diff --git a/gst/siren/huffman.c b/gst/siren/huffman.c index b563b43b9..e97da4a2b 100644 --- a/gst/siren/huffman.c +++ b/gst/siren/huffman.c @@ -29,7 +29,7 @@ static int bit_idx = 0; static int *bitstream_ptr = NULL; int -next_bit () +next_bit (void) { if (bitstream_ptr == NULL) return -1; diff --git a/gst/siren/huffman.h b/gst/siren/huffman.h index 196932da8..ea4fab0da 100644 --- a/gst/siren/huffman.h +++ b/gst/siren/huffman.h @@ -30,6 +30,6 @@ extern int decode_envelope(int number_of_regions, float *decoder_standard_deviat extern int decode_vector(SirenDecoder decoder, int number_of_regions, int number_of_available_bits, float *decoder_standard_deviation, int *power_categories, float *coefs, int scale_factor); extern void set_bitstream(int *stream); -extern int next_bit(); +extern int next_bit(void); #endif /* _SIREN7_HUFFMAN_H_ */ diff --git a/gst/siren/rmlt.c b/gst/siren/rmlt.c index acba9b728..df3088c9e 100644 --- a/gst/siren/rmlt.c +++ b/gst/siren/rmlt.c @@ -30,7 +30,7 @@ static float rmlt_window_320[320]; #define PI_2 1.57079632679489661923 void -siren_rmlt_init () +siren_rmlt_init (void) { int i = 0; float angle; diff --git a/gst/siren/rmlt.h b/gst/siren/rmlt.h index a855dd04a..27257cf1d 100644 --- a/gst/siren/rmlt.h +++ b/gst/siren/rmlt.h @@ -23,7 +23,7 @@ #ifndef _SIREN7_RMLT_H_ #define _SIREN7_RMLT_H_ -extern void siren_rmlt_init(); +extern void siren_rmlt_init(void); extern int siren_rmlt_encode_samples(float *samples, float *old_samples, int dct_length, float *rmlt_coefs); extern int siren_rmlt_decode_samples(float *coefs, float *old_coefs, int dct_length, float *samples); |