Suppress signed/unsigned comparison warnings for yycheck.

* data/c.m4 (b4_safest_int_type): New macro.
* data/glr.c, data/lalr1.cc: Wherever you compare yycheck[i] against
a signed int type, cast it to b4_safest_int_type first.
* data/yacc.c: Likewise.
(b4_safest_int_type): Overwrite the one from c.m4 since b4_int_type is
also overwritten.
This commit is contained in:
Joel E. Denny
2006-08-10 01:18:50 +00:00
parent 9c4371263f
commit 06e8700a00
7 changed files with 162 additions and 129 deletions

View File

@@ -159,7 +159,7 @@
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE
{/* Line 1535 of yacc.c. */
{/* Line 1545 of yacc.c. */
#line 97 "parse-gram.y"
symbol *symbol;
@@ -170,7 +170,7 @@ typedef union YYSTYPE
uniqstr uniqstr;
unsigned char character;
}
/* Line 1535 of yacc.c. */
/* Line 1545 of yacc.c. */
#line 175 "parse-gram.h"
YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1