From 6a82e49370e46914ab479d57548508ccf29da6e5 Mon Sep 17 00:00:00 2001 From: Henrik Gramner Date: Sat, 16 Feb 2013 19:36:50 +0100 Subject: [PATCH] Cosmetics: stricter definition of parameterless functions --- 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 6393fc08..17c02a6f 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 0314524e..4be914f1 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 4e9ca33b..3d219d0a 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" ); -- 2.40.0