mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-12 05:43:03 +00:00
* src/complain.c: No longer try to be standalone: use system.h.
Don't assume __STDC__ is defined to 1. Just test if it is defined. * src/complain.h: Likewise. * src/reduce.c (useless_nonterminals, inaccessable_symbols): Remove the unused variable `n'. From Albert Chin-A-Young.
This commit is contained in:
@@ -117,7 +117,7 @@ static void
|
||||
useless_nonterminals (void)
|
||||
{
|
||||
BSet Np, Ns;
|
||||
int i, n;
|
||||
int i;
|
||||
|
||||
/* N is set as built. Np is set being built this iteration. P is
|
||||
set of all productions which have a RHS all in N. */
|
||||
@@ -140,7 +140,6 @@ useless_nonterminals (void)
|
||||
saved to be used when finding useful productions: only
|
||||
productions in this set will appear in the final grammar. */
|
||||
|
||||
n = 0;
|
||||
while (1)
|
||||
{
|
||||
for (i = WORDSIZE (nvars) - 1; i >= 0; i--)
|
||||
@@ -171,7 +170,7 @@ static void
|
||||
inaccessable_symbols (void)
|
||||
{
|
||||
BSet Vp, Vs, Pp;
|
||||
int i, n;
|
||||
int i;
|
||||
short t;
|
||||
rule r;
|
||||
|
||||
@@ -207,7 +206,6 @@ inaccessable_symbols (void)
|
||||
|
||||
SETBIT (V, start_symbol);
|
||||
|
||||
n = 0;
|
||||
while (1)
|
||||
{
|
||||
for (i = WORDSIZE (nsyms) - 1; i >= 0; i--)
|
||||
|
||||
Reference in New Issue
Block a user