summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2009-12-22 23:07:00 -0800
committerVinson Lee <vlee@vmware.com>2009-12-22 23:07:00 -0800
commitfdc4468d876a90a6fae04b1a6e9ccde94e63a4c9 (patch)
tree4178b25fb6fd3624e9a4150f82256ff89009a91e
parenta391cf73c2664665ff2855b78affce5c7457054a (diff)
downloadglu-fdc4468d876a90a6fae04b1a6e9ccde94e63a4c9.tar.gz
glu/sgi: Silence uninitialized variable warnings.
-rw-r--r--src/libnurbs/nurbtess/sampleCompBot.cc4
-rw-r--r--src/libnurbs/nurbtess/sampleCompTop.cc4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/libnurbs/nurbtess/sampleCompBot.cc b/src/libnurbs/nurbtess/sampleCompBot.cc
index e12f88b..2e70f83 100644
--- a/src/libnurbs/nurbtess/sampleCompBot.cc
+++ b/src/libnurbs/nurbtess/sampleCompBot.cc
@@ -207,7 +207,7 @@ void sampleBotRightWithGridLine(Real* botVertex,
return;
}
- Int segIndexMono, segIndexPass;
+ Int segIndexMono = 0, segIndexPass;
findBotRightSegment(rightChain,
rightEnd,
rightCorner,
@@ -293,7 +293,7 @@ void sampleBotLeftWithGridLine(Real* botVertex,
return;
}
- Int segIndexPass, segIndexMono;
+ Int segIndexPass, segIndexMono = 0;
findBotLeftSegment(leftChain, leftEnd, leftCorner, grid->get_u_value(leftU), segIndexMono, segIndexPass);
sampleBotLeftWithGridLinePost(botVertex,
diff --git a/src/libnurbs/nurbtess/sampleCompTop.cc b/src/libnurbs/nurbtess/sampleCompTop.cc
index b7b9296..951e937 100644
--- a/src/libnurbs/nurbtess/sampleCompTop.cc
+++ b/src/libnurbs/nurbtess/sampleCompTop.cc
@@ -172,7 +172,7 @@ void sampleTopRightWithGridLine(Real* topVertex,
return;
}
- Int segIndexSmall, segIndexLarge;
+ Int segIndexSmall = 0, segIndexLarge;
findTopRightSegment(rightChain,
rightStart,
rightEnd,
@@ -294,7 +294,7 @@ void sampleTopLeftWithGridLine(Real* topVertex,
primStream* pStream
)
{
- Int segIndexSmall, segIndexLarge;
+ Int segIndexSmall = 0, segIndexLarge;
//if left chain is empty, then there is only one top vertex with one grid
// line
if(leftEnd < leftStart) {