[x264-devel] Cosmetics: stricter definition of parameterless functions

Henrik Gramner git at videolan.org
Wed Feb 27 00:18:02 CET 2013


x264 | branch: master | Henrik Gramner <henrik at gramner.com> | Sat Feb 16 19:36:50 2013 +0100| [ce9efeafaad38bc6795d4469c952af2d5bb75a84] | committer: Jason Garrett-Glaser

Cosmetics: stricter definition of parameterless functions

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

 common/display-x11.c |    4 ++--
 common/win32thread.c |    2 +-
 x264.c               |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/common/display-x11.c b/common/display-x11.c
index 6393fc0..17c02a6 100644
--- a/common/display-x11.c
+++ b/common/display-x11.c
@@ -49,7 +49,7 @@ static inline void disp_chkerror( int cond, char *e )
     abort();
 }
 
-static void disp_init_display()
+static void disp_init_display( void )
 {
     Visual *visual;
     int dpy_class;
@@ -130,7 +130,7 @@ static void disp_init_window( int num, int width, int height, const unsigned cha
     XFree( shint );
 }
 
-void disp_sync()
+void disp_sync( void )
 {
     XSync( disp_display, 1 );
 }
diff --git a/common/win32thread.c b/common/win32thread.c
index 0314524..4be914f 100644
--- a/common/win32thread.c
+++ b/common/win32thread.c
@@ -279,7 +279,7 @@ void x264_win32_threading_destroy( void )
     memset( &thread_control, 0, sizeof(x264_win32thread_control_t) );
 }
 
-int x264_pthread_num_processors_np()
+int x264_pthread_num_processors_np( void )
 {
     DWORD_PTR system_cpus, process_cpus = 0;
     int cpus = 0;
diff --git a/x264.c b/x264.c
index 9b35871..7565a1b 100644
--- a/x264.c
+++ b/x264.c
@@ -225,7 +225,7 @@ void x264_cli_printf( int i_level, const char *fmt, ... )
     va_end( arg );
 }
 
-static void print_version_info()
+static void print_version_info( void )
 {
 #ifdef X264_POINTVER
     printf( "x264 "X264_POINTVER"\n" );



More information about the x264-devel mailing list