diff options
author | Brian Paul <[email protected]> | 2005-03-29 02:28:21 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2005-03-29 02:28:21 +0000 |
commit | 9a54843a94801a2253a05e2b4b93fbaf09b59e96 (patch) | |
tree | 400e7f2cfdd0c89c5d74d2938e0e50ec23723127 /src/mesa/shader/slang/MachineIndependent | |
parent | cb80e3905cfc3f38dc47cdf8936b6e33fdab9648 (diff) |
fix a variety of warnings/errors
Diffstat (limited to 'src/mesa/shader/slang/MachineIndependent')
-rwxr-xr-x | src/mesa/shader/slang/MachineIndependent/Intermediate.cpp | 3 | ||||
-rwxr-xr-x | src/mesa/shader/slang/MachineIndependent/PoolAlloc.cpp | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/shader/slang/MachineIndependent/Intermediate.cpp b/src/mesa/shader/slang/MachineIndependent/Intermediate.cpp index 759a2902629..056fe17de02 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 497264348b7..ba717fce12b 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");
}
|