[x264-devel] commit: Fix syntax for some parameterless functions (Jason Garrett-Glaser )

git at videolan.org git at videolan.org
Wed Nov 10 10:12:28 CET 2010


x264 | branch: master | Jason Garrett-Glaser <darkshikari at gmail.com> | Sat Oct 30 14:36:01 2010 -0700| [527d1965fd70117187433f61ab8efc650b4d11a5] | committer: Jason Garrett-Glaser 

Fix syntax for some parameterless functions
Technically, such functions should be declared with (void), not ().

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=527d1965fd70117187433f61ab8efc650b4d11a5
---

 common/common.h       |    2 +-
 common/cpu.c          |    4 ++--
 common/vlc.c          |    2 +-
 filters/video/video.c |    2 +-
 filters/video/video.h |    2 +-
 5 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/common/common.h b/common/common.h
index 638c9fe..d5facf1 100644
--- a/common/common.h
+++ b/common/common.h
@@ -200,7 +200,7 @@ void x264_log( x264_t *h, int i_level, const char *psz_fmt, ... );
 
 void x264_reduce_fraction( uint32_t *n, uint32_t *d );
 void x264_reduce_fraction64( uint64_t *n, uint64_t *d );
-void x264_init_vlc_tables();
+void x264_init_vlc_tables( void );
 
 static ALWAYS_INLINE pixel x264_clip_pixel( int x )
 {
diff --git a/common/cpu.c b/common/cpu.c
index f14ea97..39caf1b 100644
--- a/common/cpu.c
+++ b/common/cpu.c
@@ -286,8 +286,8 @@ uint32_t x264_cpu_detect( void )
 
 #elif ARCH_ARM
 
-void x264_cpu_neon_test();
-int x264_cpu_fast_neon_mrc_test();
+void x264_cpu_neon_test( void );
+int x264_cpu_fast_neon_mrc_test( void );
 
 uint32_t x264_cpu_detect( void )
 {
diff --git a/common/vlc.c b/common/vlc.c
index b43ae1f..9ff3b84 100644
--- a/common/vlc.c
+++ b/common/vlc.c
@@ -695,7 +695,7 @@ const vlc_t x264_run_before[7][16] =
 
 vlc_large_t x264_level_token[7][LEVEL_TABLE_SIZE];
 
-void x264_init_vlc_tables()
+void x264_init_vlc_tables( void )
 {
     for( int i_suffix = 0; i_suffix < 7; i_suffix++ )
         for( int16_t level = -LEVEL_TABLE_SIZE/2; level < LEVEL_TABLE_SIZE/2; level++ )
diff --git a/filters/video/video.c b/filters/video/video.c
index 71ae01e..e779543 100644
--- a/filters/video/video.c
+++ b/filters/video/video.c
@@ -42,7 +42,7 @@ static void register_vid_filter( cli_vid_filter_t *new_filter )
     register_vid_filter( &name##_filter );\
 }
 
-void x264_register_vid_filters()
+void x264_register_vid_filters( void )
 {
     extern cli_vid_filter_t source_filter;
     first_filter = &source_filter;
diff --git a/filters/video/video.h b/filters/video/video.h
index a368b55..3f3ed3b 100644
--- a/filters/video/video.h
+++ b/filters/video/video.h
@@ -55,7 +55,7 @@ struct cli_vid_filter_t
     cli_vid_filter_t *next;
 };
 
-void x264_register_vid_filters();
+void x264_register_vid_filters( void );
 void x264_vid_filter_help( int longhelp );
 int  x264_init_vid_filter( const char *name, hnd_t *handle, cli_vid_filter_t *filter,
                            video_info_t *info, x264_param_t *param, char *opt_string );



More information about the x264-devel mailing list