From: Jason Garrett-Glaser Date: Sat, 30 Oct 2010 21:36:01 +0000 (-0700) Subject: Fix syntax for some parameterless functions X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=527d1965fd70117187433f61ab8efc650b4d11a5;p=x264.git Fix syntax for some parameterless functions Technically, such functions should be declared with (void), not (). --- diff --git a/common/common.h b/common/common.h index 638c9fe0..d5facf13 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 f14ea972..39caf1bb 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 b43ae1fa..9ff3b848 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 71ae01e4..e7795431 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 a368b553..3f3ed3b6 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 );