mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 04:13:03 +00:00
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:
@@ -164,6 +164,11 @@ m4_define([b4_int_type],
|
||||
|
||||
[int])])
|
||||
|
||||
# b4_safest_int_type
|
||||
# ------------------
|
||||
# The safest int type to cast to when it's necessary to compare a signed int
|
||||
# type against an int type set by b4_int_type.
|
||||
m4_define([b4_safest_int_type],[int])
|
||||
|
||||
# b4_int_type_for(NAME)
|
||||
# ---------------------
|
||||
|
||||
Reference in New Issue
Block a user