Просмотр исходного кода

Add missing 'void' keyword to parameterless function declarations.

Originally committed as revision 16436 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diego Biurrun 16 лет назад
Родитель
Сommit
c47d146be8
4 измененных файлов с 5 добавлено и 4 удалено
  1. 1 1
      libavcodec/intrax8.c
  2. 1 1
      libavcodec/x86/dsputil_mmx.c
  3. 2 1
      libavcodec/x86/simple_idct_mmx.c
  4. 1 1
      libavutil/pca.c

+ 1 - 1
libavcodec/intrax8.c

@@ -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) \

+ 1 - 1
libavcodec/x86/dsputil_mmx.c

@@ -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,

+ 2 - 1
libavcodec/x86/simple_idct_mmx.c

@@ -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;
 }

+ 1 - 1
libavutil/pca.c

@@ -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