aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2009-01-05 13:57:43 +0000
committerDiego Biurrun <diego@biurrun.de>2009-01-05 13:57:43 +0000
commitc47d146be8cbfe41df8c4f1ce3b5bb993909514c (patch)
treea5637e12fa6c5016fcdfaae8a61583603c76b1a2
parent5fd9c8b94aca3b41a34bf24f9ab7bc3ea426a43b (diff)
downloadffmpeg-c47d146be8cbfe41df8c4f1ce3b5bb993909514c.tar.gz
Add missing 'void' keyword to parameterless function declarations.
Originally committed as revision 16436 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/intrax8.c2
-rw-r--r--libavcodec/x86/dsputil_mmx.c2
-rw-r--r--libavcodec/x86/simple_idct_mmx.c3
-rw-r--r--libavutil/pca.c2
4 files changed, 5 insertions, 4 deletions
diff --git a/libavcodec/intrax8.c b/libavcodec/intrax8.c
index 04fdf03852..1bca7f6504 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 f76a4fa33a..1d93351507 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 6306fcbd44..578674451a 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 d21814cdff..76966f0c7d 100644
--- a/libavutil/pca.c
+++ b/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