diff --git a/libswscale/yuv2rgb.c b/libswscale/yuv2rgb.c
index 8b4622311cadcad2280dd85e950011ebc208e664..8ece0f61831bfc94c517c700d2d33964b75fb7f8 100644
--- a/libswscale/yuv2rgb.c
+++ b/libswscale/yuv2rgb.c
@@ -276,8 +276,7 @@ static int func_name(SwsContext *c, uint8_t* src[], int srcStride[], int srcSlic
             dst_2 += dst_delta;\
         }\
         if (c->dstW & 4) {\
-            int av_unused U, V;\
-            int Y;\
+            int av_unused Y, U, V;\
 
 #define EPILOG2()\
         }\