Hi Sergei, On Fri, Nov 14, 2025 at 4:45 AM Sergei Trofimovich <[email protected]> wrote: > > Without the change the build fails on `gcc-16` as: > > i386_parse.y: In function 'instrtable_out': > i386_parse.y:1245:10: error: variable 'cnt' set but not used > [-Werror=unused-but-set-variable=] > 1245 | size_t cnt = 0; > | ^~~ > > Signed-off-by: Sergei Trofimovich <[email protected]> > --- > libcpu/i386_parse.y | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/libcpu/i386_parse.y b/libcpu/i386_parse.y > index 5c91e520..afe488fc 100644 > --- a/libcpu/i386_parse.y > +++ b/libcpu/i386_parse.y > @@ -1242,8 +1242,7 @@ instrtable_out (void) > fputs ("};\n", outfile); > > fputs ("static const uint8_t match_data[] =\n{\n", outfile); > - size_t cnt = 0; > - for (instr = instructions; instr != NULL; instr = instr->next, ++cnt) > + for (instr = instructions; instr != NULL; instr = instr->next) > { > /* First count the number of bytes. */ > size_t totalbits = 0; > -- > 2.51.2 >
Thanks, pushed as commit d5987fcafa5d. Aaron
