fix warnings on sparc

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9759 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-11-06 21:30:15 +00:00
parent 2bee057a56
commit 5cea0e142c
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);