From 9a54843a94801a2253a05e2b4b93fbaf09b59e96 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 29 Mar 2005 02:28:21 +0000 Subject: fix a variety of warnings/errors --- src/mesa/shader/slang/MachineIndependent/Intermediate.cpp | 3 ++- src/mesa/shader/slang/MachineIndependent/PoolAlloc.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src/mesa/shader/slang/MachineIndependent') diff --git a/src/mesa/shader/slang/MachineIndependent/Intermediate.cpp b/src/mesa/shader/slang/MachineIndependent/Intermediate.cpp index 759a290262..056fe17de0 100755 --- a/src/mesa/shader/slang/MachineIndependent/Intermediate.cpp +++ b/src/mesa/shader/slang/MachineIndependent/Intermediate.cpp @@ -1670,7 +1670,7 @@ TIntermTyped* TIntermConstantUnion::fold(TOperator op, TIntermTyped* constantNod // int rightValue = constantNode->getAsConstantUnion()->getUnionArrayPointer()->iConst; int leftValue = this->getUnionArrayPointer()->iConst; - int line = this->getLine(); + //int line = this->getLine(); switch(op) { //?? add constant intrinsics @@ -2085,6 +2085,7 @@ bool TIntermediate::removeMatrixConstNode(TIntermSequence &parentSequence, TType case EbtInt: constantUnion->iConst = 0; break; case EbtFloat: constantUnion->fConst = 0.0; break; case EbtBool: constantUnion->bConst = false; break; + default: ; /* default added by BrianP */ } } TIntermConstantUnion *constant = new TIntermConstantUnion(constantUnion, diff --git a/src/mesa/shader/slang/MachineIndependent/PoolAlloc.cpp b/src/mesa/shader/slang/MachineIndependent/PoolAlloc.cpp index 497264348b..ba717fce12 100755 --- a/src/mesa/shader/slang/MachineIndependent/PoolAlloc.cpp +++ b/src/mesa/shader/slang/MachineIndependent/PoolAlloc.cpp @@ -203,7 +203,7 @@ void TAllocation::checkGuardBlock(unsigned char* blockMem, unsigned char val, ch char assertMsg[80]; // We don't print the assert message. It's here just to be helpful. - sprintf(assertMsg, "PoolAlloc: Damage %s %lu byte allocation at 0x%p\n", + sprintf(assertMsg, "PoolAlloc: Damage %s %u byte allocation at 0x%p\n", locText, size, data()); assert(0 && "PoolAlloc: Damage in guard block"); } -- cgit v1.2.3