]> git.sesse.net Git - x264/commitdiff
Fix syntax for some parameterless functions
authorFiona Glaser <fiona@x264.com>
Sat, 30 Oct 2010 21:36:01 +0000 (14:36 -0700)
committerFiona Glaser <fiona@x264.com>
Sun, 31 Oct 2010 18:26:50 +0000 (11:26 -0700)
Technically, such functions should be declared with (void), not ().

common/common.h
common/cpu.c
common/vlc.c
filters/video/video.c
filters/video/video.h

index 638c9fe0b1c6152bb1128dcf5eec858a5d83336f..d5facf137c3901a2aa9405254befe836ff0fabe8 100644 (file)
@@ -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 )
 {
index 81bdc807f7f3fd1cc3dd4e278bd4794b40ca9166..7ebb2abec281f62e3905334f2a7d13ba8c7ac952 100644 (file)
@@ -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 )
 {
index 8069215c130b3c7341499bd4eecd6913f20792e3..1ee48d6772017df50cdde49405d967785bb139d5 100644 (file)
@@ -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++ )
index 71ae01e4fe978a4242c1846f0e8def8171df0f5b..e77954318fc00349abe089c058eb36543c835fbc 100644 (file)
@@ -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;
index a368b553d161018aa42967742cdbee78f8fd1814..3f3ed3b6520e656839621367a486eb04510b49e4 100644 (file)
@@ -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 );