OSDN Git Service

Add missing 'void' keyword to parameterless function declarations.
authorDiego Biurrun <diego@biurrun.de>
Mon, 5 Jan 2009 13:57:43 +0000 (13:57 +0000)
committerDiego Biurrun <diego@biurrun.de>
Mon, 5 Jan 2009 13:57:43 +0000 (13:57 +0000)
Originally committed as revision 16436 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/intrax8.c
libavcodec/x86/dsputil_mmx.c
libavcodec/x86/simple_idct_mmx.c
libavutil/pca.c

index 04fdf03..1bca7f6 100644 (file)
@@ -42,7 +42,7 @@ static VLC j_ac_vlc[2][2][8];  //[quant<13],[intra/inter],[select]
 static VLC j_dc_vlc[2][8];     //[quant], [select]
 static VLC j_orient_vlc[2][4]; //[quant], [select]
 
-static void x8_vlc_init(){
+static void x8_vlc_init(void){
     int i;
 
 #define  init_ac_vlc(dst,src) \
index f76a4fa..1d93351 100644 (file)
@@ -1599,7 +1599,7 @@ QPEL_2TAP(avg_,  8, 3dnow)
 
 
 #if 0
-static void just_return() { return; }
+static void just_return(void) { return; }
 #endif
 
 static void gmc_mmx(uint8_t *dst, uint8_t *src, int stride, int h, int ox, int oy,
index 6306fcb..5786744 100644 (file)
@@ -80,7 +80,8 @@ DECLARE_ALIGNED(8, static const int16_t, coeffs[])= {
 };
 
 #if 0
-static void unused_var_killer(){
+static void unused_var_killer(void)
+{
         int a= wm1010 + d40000;
         temp[0]=a;
 }
index d21814c..76966f0 100644 (file)
@@ -168,7 +168,7 @@ int ff_pca(PCA *pca, double *eigenvector, double *eigenvalue){
 #include <stdio.h>
 #include <stdlib.h>
 
-int main(){
+int main(void){
     PCA *pca;
     int i, j, k;
 #define LEN 8