From c47d146be8cbfe41df8c4f1ce3b5bb993909514c Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Mon, 5 Jan 2009 13:57:43 +0000 Subject: [PATCH] Add missing 'void' keyword to parameterless function declarations. Originally committed as revision 16436 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/intrax8.c | 2 +- libavcodec/x86/dsputil_mmx.c | 2 +- libavcodec/x86/simple_idct_mmx.c | 3 ++- libavutil/pca.c | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/libavcodec/intrax8.c b/libavcodec/intrax8.c index 04fdf0385..1bca7f650 100644 --- a/libavcodec/intrax8.c +++ b/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) \ diff --git a/libavcodec/x86/dsputil_mmx.c b/libavcodec/x86/dsputil_mmx.c index f76a4fa33..1d9335150 100644 --- a/libavcodec/x86/dsputil_mmx.c +++ b/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, diff --git a/libavcodec/x86/simple_idct_mmx.c b/libavcodec/x86/simple_idct_mmx.c index 6306fcbd4..578674451 100644 --- a/libavcodec/x86/simple_idct_mmx.c +++ b/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; } diff --git a/libavutil/pca.c b/libavutil/pca.c index d21814cdf..76966f0c7 100644 --- a/libavutil/pca.c +++ b/libavutil/pca.c @@ -168,7 +168,7 @@ int ff_pca(PCA *pca, double *eigenvector, double *eigenvalue){ #include #include -int main(){ +int main(void){ PCA *pca; int i, j, k; #define LEN 8 -- 2.11.0