From 39f5757a95b687b334165c129ec3c95ce5fec8b5 Mon Sep 17 00:00:00 2001 From: Paul Hilfinger Date: Thu, 9 Sep 2010 00:46:50 -0700 Subject: [PATCH] Remove compiler warnings in GLR parsers. * data/glr.c (yySymbol): Define as int to avoid compiler warnings about possible change of value. --- ChangeLog | 5 +++++ data/glr.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index cef54a3d..5b61ec57 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-09-09 Paul Hilfinger + + * data/glr.c (yySymbol): Define as int to avoid compiler warnings about + possible change of value. + 2010-09-08 Paul Hilfinger * data/glr.c (yy_reduce_print): Change yyrhsVals to yyvsp to remove diff --git a/data/glr.c b/data/glr.c index 944c3349..642b9931 100644 --- a/data/glr.c +++ b/data/glr.c @@ -673,7 +673,7 @@ typedef int yyStateNum; typedef int yyRuleNum; /** Grammar symbol */ -typedef short int yySymbol; +typedef int yySymbol; /** Item references, as in LALR(1) machine */ typedef short int yyItemNum; -- 2.45.2