Tarantool development patches archive
 help / color / mirror / Atom feed
From: Evgeniy Temirgaleev via Tarantool-patches <tarantool-patches@dev.tarantool.org>
To: "Sergey Kaplun" <skaplun@tarantool.org>
Cc: tarantool-patches@dev.tarantool.org
Subject: Re: [Tarantool-patches]  [PATCH luajit] test: fix libfficcall compilation for old GCC
Date: Mon, 15 Jun 2026 17:49:03 +0300	[thread overview]
Message-ID: <1781534943.834338040@f523.i.mail.ru> (raw)
In-Reply-To: <20260608102318.4068317-1-skaplun@tarantool.org>

[-- Attachment #1: Type: text/plain, Size: 1447 bytes --]

Hi, Sergey!

Thanks for the patch, it LGTM.

--
Best regards,
Evgeniy Temirgaleev

> 
> From: Sergey Kaplun <skaplun@tarantool.org>
> To: Sergey Bronnikov <sergeyb@tarantool.org>, Evgeniy Temirgaleev <e.temirgaleev@tarantool.org
> >
> Cc: tarantool-patches@dev.tarantool.org, Sergey Kaplun <skaplun@tarantool.org
> >
> Date: Monday, June 8, 2026 1:23 PM +03:00
> On CentOS 7 GCC has no std=c99 by default. This leads to compilation
> warnings and errors for ‘for’ loop initial declarations. This patch
> fixes that by declaring the variable out of the loop body.
> ---
> 
> Branch: https://github.com/tarantool/luajit/tree/skaplun/gh-noticket-fix-tests-old-gcc
> 
> CI failure: https://github.com/tarantool/luajit/actions/runs/27124968515/job/80063067169#step:6:10593
> 
> 
> test/tarantool-tests/ffi-ccall/libfficcall.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/test/tarantool-tests/ffi-ccall/libfficcall.c
> b/test/tarantool-tests/ffi-ccall/libfficcall.c
> index 2145b556..129bc75d 100644
> --- a/test/tarantool-tests/ffi-ccall/libfficcall.c
> +++ b/test/tarantool-tests/ffi-ccall/libfficcall.c
> @@ -307,7 +307,8 @@ int test_2_large_agg_a16(int x, large_agg_a16 s1,
> large_agg_a16 s2)
> const int *v1 = s1.v;
> const int *v2 = s2.v;
> int sum = x;
> - for (int i = 0; i < lengthof(s1.v); i++) {
> + int i = 0;
> + for (; i < lengthof(s1.v); i++) {
> sum += v1[i] + v2[i];
> }
> return sum;
> --
> 2.54.0
>

[-- Attachment #2: Type: text/html, Size: 2490 bytes --]

      parent reply	other threads:[~2026-06-15 14:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-08 10:23 Sergey Kaplun via Tarantool-patches
2026-06-09 13:55 ` Sergey Bronnikov via Tarantool-patches
2026-06-09 18:00   ` Sergey Kaplun via Tarantool-patches
2026-06-15 14:49 ` Evgeniy Temirgaleev via Tarantool-patches [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1781534943.834338040@f523.i.mail.ru \
    --to=tarantool-patches@dev.tarantool.org \
    --cc=e.temirgaleev@tarantool.org \
    --cc=skaplun@tarantool.org \
    --subject='Re: [Tarantool-patches]  [PATCH luajit] test: fix libfficcall compilation for old GCC' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox