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 <slyich@gmail.com>
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;