<HTML><BODY><div class="cl-oewaxvayxw"><div>Hi, Sergey!</div><div> </div><div>Thanks for the patch, it LGTM.</div><div><br> </div><div data-signature-widget="container"><div data-signature-widget="content"><div>--<br>Best regards,</div><div>Evgeniy Temirgaleev</div></div></div><br><div class="mail-quote-collapse"><blockquote style="border-left:1px solid #0857A6;margin:10px;padding:0 0 0 10px"><span>From: Sergey Kaplun <<a href="mailto:skaplun@tarantool.org">skaplun@tarantool.org</a>><br>To: Sergey Bronnikov <<a href="mailto:sergeyb@tarantool.org">sergeyb@tarantool.org</a>>, Evgeniy Temirgaleev <<a href="mailto:e.temirgaleev@tarantool.org">e.temirgaleev@tarantool.org</a>><br>Cc: tarantool-patches@dev.tarantool.org, Sergey Kaplun <<a href="mailto:skaplun@tarantool.org">skaplun@tarantool.org</a>><br>Date: Monday, June 8, 2026 1:23 PM +03:00</span><br> <div><div id=""><div class="cl-4r7o2mx55s"><div class="js-helper_mr_css_attr js-readmsg-msg_mr_css_attr"><div id="style_17809142340637308699_mr_css_attr"><div id="style_17809142340637308699_BODY_mr_css_attr">On CentOS 7 GCC has no std=c99 by default. This leads to compilation<br>warnings and errors for ‘for’ loop initial declarations. This patch<br>fixes that by declaring the variable out of the loop body.<br>---<br><br>Branch: <a href="https://github.com/tarantool/luajit/tree/skaplun/gh-noticket-fix-tests-old-gcc">https://github.com/tarantool/luajit/tree/skaplun/gh-noticket-fix-tests-old-gcc</a><br>CI failure: <a href="https://github.com/tarantool/luajit/actions/runs/27124968515/job/80063067169#step:6:10593">https://github.com/tarantool/luajit/actions/runs/27124968515/job/80063067169#step:6:10593</a><br><br>test/tarantool-tests/ffi-ccall/libfficcall.c | 3 ++-<br>1 file changed, 2 insertions(+), 1 deletion(-)<br><br>diff --git a/test/tarantool-tests/ffi-ccall/libfficcall.c b/test/tarantool-tests/ffi-ccall/libfficcall.c<br>index 2145b556..129bc75d 100644<br>--- a/test/tarantool-tests/ffi-ccall/libfficcall.c<br>+++ b/test/tarantool-tests/ffi-ccall/libfficcall.c<br>@@ -307,7 +307,8 @@ int test_2_large_agg_a16(int x, large_agg_a16 s1, large_agg_a16 s2)<br>const int *v1 = s1.v;<br>const int *v2 = s2.v;<br>int sum = x;<br>- for (int i = 0; i < lengthof(s1.v); i++) {<br>+ int i = 0;<br>+ for (; i < lengthof(s1.v); i++) {<br>sum += v1[i] + v2[i];<br>}<br>return sum;<br>--<br>2.54.0</div></div></div></div></div></div></blockquote></div></div></BODY></HTML>