[FFmpeg-devel] [PATCH 1/2] checkasm/sw_rgb: fix the function declaration warning

Jun Zhao mypopydev at gmail.com
Sun May 6 04:33:27 EEST 2018


fix the warning: "function declaration isn’t a prototype", in C
int foo() and int foo(void) are different functions. int foo()
accepts an arbitrary number of arguments, while int foo(void) accepts 0
arguments.

Signed-off-by: Jun Zhao <mypopydev at gmail.com>
---
 tests/checkasm/sw_rgb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/checkasm/sw_rgb.c b/tests/checkasm/sw_rgb.c
index d2b211f..000420d 100644
--- a/tests/checkasm/sw_rgb.c
+++ b/tests/checkasm/sw_rgb.c
@@ -68,7 +68,7 @@ static void check_shuffle_bytes(void * func, const char * report)
     }
 }
 
-static void check_uyvy_to_422p()
+static void check_uyvy_to_422p(void)
 {
     int i;
 
-- 
2.7.4



More information about the ffmpeg-devel mailing list