mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-14 23:03:04 +00:00
Work around GCC 4.8 false alarms without casts
* data/skeletons/yacc.c (yyparse): Initialize yyes_capacity with a signed expression. * tests/local.at (AT_YYLEX_DEFINE(c)): Use enum to avoid cast.
This commit is contained in:
8
TODO
8
TODO
@@ -117,14 +117,6 @@ compiling yacc.c code:
|
||||
|
||||
YYPTRDIFF_T yysize = (YYPTRDIFF_T) (yyesp - *yyes + 1);
|
||||
|
||||
Or G++ 4.8
|
||||
|
||||
yyes_capacity = (YYPTRDIFF_T) (sizeof yyesa / sizeof *yyes);
|
||||
|
||||
Or GCC 4.8
|
||||
|
||||
int input_elts = (int) (sizeof input / sizeof input[0]);
|
||||
|
||||
* Completion
|
||||
Several features are not available in all the backends.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user