I'm using gcc with the option -Wconversion (and -Werror), which gives a
warning in the generated parser (line number not certain):

gen/y.tab.c: In function 'int yyparse()':
gen/y.tab.c:1679: warning: conversion to 'short int' from 'int' may
alter
its value

this is the line

   *yyssp = yystate;

in the generated function yyparse , the declarations are

     int yystate;

and

     yytype_int16 *yyssp;

explaining the trouble.

Seen on debian lenny with bison 2.4.1, but also 2.4.3 gives the same
issue.

Suggestions?

Cheers,
Håkan
_______________________________________________
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to