diff mbox

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

Message ID 1525570408-24920-1-git-send-email-mypopydev@gmail.com
State Accepted
Commit b30575bc982fd70799f63f2031640b9916f1648d
Headers show

Commit Message

Jun Zhao May 6, 2018, 1:33 a.m. UTC
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@gmail.com>
---
 tests/checkasm/sw_rgb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

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;