changeset 8693:18737839ed27 libavcodec

Add missing void keyword to parameterless function declarations.
author diego
date Fri, 30 Jan 2009 18:38:25 +0000
parents 48442253aac2
children 68fd157bab48
files dct-test.c faxcompr.c faxcompr.h fdctref.c mlp.c mlp.h mlpdec.c mpc.c mpc.h rv34.c rv40.c sparc/dsputil_vis.c
diffstat 12 files changed, 12 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/dct-test.c	Fri Jan 30 17:15:08 2009 +0000
+++ b/dct-test.c	Fri Jan 30 18:38:25 2009 +0000
@@ -48,7 +48,7 @@
 /* reference fdct/idct */
 void fdct(DCTELEM *block);
 void idct(DCTELEM *block);
-void init_fdct();
+void init_fdct(void);
 
 void ff_mmx_idct(DCTELEM *data);
 void ff_mmxext_idct(DCTELEM *data);
--- a/faxcompr.c	Fri Jan 30 17:15:08 2009 +0000
+++ b/faxcompr.c	Fri Jan 30 18:38:25 2009 +0000
@@ -95,7 +95,7 @@
 
 static VLC ccitt_vlc[2], ccitt_group3_2d_vlc;
 
-av_cold void ff_ccitt_unpack_init()
+av_cold void ff_ccitt_unpack_init(void)
 {
     static VLC_TYPE code_table1[528][2];
     static VLC_TYPE code_table2[648][2];
--- a/faxcompr.h	Fri Jan 30 17:15:08 2009 +0000
+++ b/faxcompr.h	Fri Jan 30 18:38:25 2009 +0000
@@ -33,7 +33,7 @@
 /**
  * initialize upacker code
  */
-void ff_ccitt_unpack_init();
+void ff_ccitt_unpack_init(void);
 
 /**
  * unpack data compressed with CCITT Group 3 1/2-D or Group 4 method
--- a/fdctref.c	Fri Jan 30 17:15:08 2009 +0000
+++ b/fdctref.c	Fri Jan 30 18:38:25 2009 +0000
@@ -46,7 +46,7 @@
 /* private data */
 static double c[8][8]; /* transform coefficients */
 
-void init_fdct()
+void init_fdct(void)
 {
   int i, j;
   double s;
--- a/mlp.c	Fri Jan 30 17:15:08 2009 +0000
+++ b/mlp.c	Fri Jan 30 18:38:25 2009 +0000
@@ -46,7 +46,7 @@
 static AVCRC crc_1D[1024];
 static AVCRC crc_2D[1024];
 
-void av_cold ff_mlp_init_crc()
+av_cold void ff_mlp_init_crc(void)
 {
     if (!crc_init) {
         av_crc_init(crc_63, 0,  8,   0x63, sizeof(crc_63));
--- a/mlp.h	Fri Jan 30 17:15:08 2009 +0000
+++ b/mlp.h	Fri Jan 30 18:38:25 2009 +0000
@@ -106,7 +106,7 @@
  */
 uint8_t ff_mlp_calculate_parity(const uint8_t *buf, unsigned int buf_size);
 
-void ff_mlp_init_crc();
+void ff_mlp_init_crc(void);
 
 /** XOR four bytes into one. */
 static inline uint8_t xor_32_to_8(uint32_t value)
--- a/mlpdec.c	Fri Jan 30 17:15:08 2009 +0000
+++ b/mlpdec.c	Fri Jan 30 18:38:25 2009 +0000
@@ -141,7 +141,7 @@
 
 /** Initialize static data, constant between all invocations of the codec. */
 
-static av_cold void init_static()
+static av_cold void init_static(void)
 {
     INIT_VLC_STATIC(&huff_vlc[0], VLC_BITS, 18,
                 &ff_mlp_huffman_tables[0][0][1], 2, 1,
--- a/mpc.c	Fri Jan 30 17:15:08 2009 +0000
+++ b/mpc.c	Fri Jan 30 18:38:25 2009 +0000
@@ -36,7 +36,7 @@
 
 static DECLARE_ALIGNED_16(MPA_INT, mpa_window[512]);
 
-void ff_mpc_init()
+void ff_mpc_init(void)
 {
     ff_mpa_synth_init(mpa_window);
 }
--- a/mpc.h	Fri Jan 30 17:15:08 2009 +0000
+++ b/mpc.h	Fri Jan 30 18:38:25 2009 +0000
@@ -70,7 +70,7 @@
     DECLARE_ALIGNED_16(int32_t, sb_samples[MPA_MAX_CHANNELS][36][SBLIMIT]);
 } MPCContext;
 
-void ff_mpc_init();
+void ff_mpc_init(void);
 void ff_mpc_dequantize_and_synth(MPCContext *c, int maxband, void *dst);
 
 #endif /* AVCODEC_MPC_H */
--- a/rv34.c	Fri Jan 30 17:15:08 2009 +0000
+++ b/rv34.c	Fri Jan 30 18:38:25 2009 +0000
@@ -101,7 +101,7 @@
 /**
  * Initialize all tables.
  */
-static av_cold void rv34_init_tables()
+static av_cold void rv34_init_tables(void)
 {
     int i, j, k;
 
--- a/rv40.c	Fri Jan 30 17:15:08 2009 +0000
+++ b/rv40.c	Fri Jan 30 18:38:25 2009 +0000
@@ -40,7 +40,7 @@
 /**
  * Initialize all tables.
  */
-static av_cold void rv40_init_tables()
+static av_cold void rv40_init_tables(void)
 {
     int i;
 
--- a/sparc/dsputil_vis.c	Fri Jan 30 17:15:08 2009 +0000
+++ b/sparc/dsputil_vis.c	Fri Jan 30 18:38:25 2009 +0000
@@ -3988,7 +3988,7 @@
 #define ACCEL_SPARC_VIS 1
 #define ACCEL_SPARC_VIS2 2
 
-static int vis_level ()
+static int vis_level(void)
 {
     int accel = 0;
     accel |= ACCEL_SPARC_VIS;