[x264-devel] [PATCH] Fix prototype of function with void argument
Loic Le Loarer
lll+vlc at m4x.org
Sun Aug 3 20:09:26 CEST 2008
empty argument list isn't recognized as matching by gcc -Wmissing-prototypes, so add the void argument
---
encoder/macroblock.h | 2 +-
encoder/rdo.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/encoder/macroblock.h b/encoder/macroblock.h
index 49d13a2..28b804b 100644
--- a/encoder/macroblock.h
+++ b/encoder/macroblock.h
@@ -29,7 +29,7 @@
extern const int x264_lambda2_tab[52];
extern const int x264_lambda_tab[52];
-void x264_rdo_init( );
+void x264_rdo_init( void );
int x264_macroblock_probe_skip( x264_t *h, int b_bidir );
diff --git a/encoder/rdo.c b/encoder/rdo.c
index 7af702b..8a36751 100644
--- a/encoder/rdo.c
+++ b/encoder/rdo.c
@@ -217,7 +217,7 @@ static int x264_rd_cost_i8x8_chroma( x264_t *h, int i_lambda2, int i_mode, int b
#define LAMBDA_BITS 4
/* precalculate the cost of coding abs_level_m1 */
-void x264_rdo_init( )
+void x264_rdo_init( void )
{
int i_prefix;
int i_ctx;
--
1.5.6
More information about the x264-devel
mailing list