[FFmpeg-cvslog] checkasm/sw_rgb: fix the function declaration warning

Jun Zhao git at videolan.org
Thu May 10 14:38:30 EEST 2018


ffmpeg | branch: master | Jun Zhao <mypopydev at gmail.com> | Sun May  6 09:33:27 2018 +0800| [b30575bc982fd70799f63f2031640b9916f1648d] | committer: Jun Zhao

checkasm/sw_rgb: fix the function declaration warning

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>

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

 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 d2b211f7b4..000420d8f7 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;
 



More information about the ffmpeg-cvslog mailing list