diff mbox series

[FFmpeg-devel] tests: fix warning ISO C90 forbids mixed declarations and code

Message ID 1599140085-2460-1-git-send-email-lance.lmwang@gmail.com
State Accepted
Commit c748bd77dcff385e37bb9aaebdf0314d0929d331
Headers show
Series [FFmpeg-devel] tests: fix warning ISO C90 forbids mixed declarations and code | expand

Checks

Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

Lance Wang Sept. 3, 2020, 1:34 p.m. UTC
From: Limin Wang <lance.lmwang@gmail.com>

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
---
 tests/checkasm/vf_hflip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/tests/checkasm/vf_hflip.c b/tests/checkasm/vf_hflip.c
index 48ebf85..2d6fdec 100644
--- a/tests/checkasm/vf_hflip.c
+++ b/tests/checkasm/vf_hflip.c
@@ -40,10 +40,10 @@  static void check_hflip(int step, const char * report_name){
     int i;
     int step_array[4] = {1, 1, 1, 1};
     FlipContext s;
-    s.bayer_plus1 = 1;
 
     declare_func(void, const uint8_t *src, uint8_t *dst, int w);
 
+    s.bayer_plus1 = 1;
     memset(src,     0, WIDTH_PADDED);
     memset(dst_ref, 0, WIDTH_PADDED);
     memset(dst_new, 0, WIDTH_PADDED);