From 5cea0e142c7a8da1aeb5954574fcab0e0700e44b Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 6 Nov 2003 21:30:15 +0000 Subject: [PATCH] fix warnings on sparc git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9759 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/Burg/be.c | 2 +- utils/Burg/closure.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/Burg/be.c b/utils/Burg/be.c index defe948d2db..303f9406fa3 100644 --- a/utils/Burg/be.c +++ b/utils/Burg/be.c @@ -414,7 +414,7 @@ makeCostArray() fprintf(outfile, "short %s_cost[][%d] = {\n", prefix, DELTAWIDTH); for (i = 0; i <= max_erule_num; i++) { - makeCostVector(pVector[i], pVector[i] ? pVector[i]->rule->delta : 0); + makeCostVector(pVector[i] != 0, pVector[i] ? pVector[i]->rule->delta : 0); fprintf(outfile, ", /* "); printRule(pVector[i], "(none)"); fprintf(outfile, " = %d */\n", i); diff --git a/utils/Burg/closure.c b/utils/Burg/closure.c index 70e16264ebb..c424c5796a1 100644 --- a/utils/Burg/closure.c +++ b/utils/Burg/closure.c @@ -31,7 +31,7 @@ zero(t) Item_Set t; int i; DeltaCost base; int exists; - int base_nt; + int base_nt = 0; assert(!t->closed);