summaryrefslogtreecommitdiff
path: root/apps/plugins/chopper.c
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2011-05-01 13:48:28 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2011-05-01 13:48:28 +0000
commitf7c45941344ecfbcdd5d9b311b61573d37c6ef58 (patch)
tree4c2fa595d7209694dd30b0e0b349a0a44116d712 /apps/plugins/chopper.c
parent08fb3f65745a237e2c1eae55d856ff27702246e5 (diff)
downloadrockbox-f7c45941344ecfbcdd5d9b311b61573d37c6ef58.tar.gz
rockbox-f7c45941344ecfbcdd5d9b311b61573d37c6ef58.zip
Fix further 'variable set but not used' warnings reported from GCC 4.6.0.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29809 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/chopper.c')
-rw-r--r--apps/plugins/chopper.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/apps/plugins/chopper.c b/apps/plugins/chopper.c
index 5f9fadf205..bb36294238 100644
--- a/apps/plugins/chopper.c
+++ b/apps/plugins/chopper.c
@@ -392,7 +392,6 @@ static void chopTerrainNodeDeleteAndShift(struct CTerrain *ter,int nodeIndex)
392int chopUpdateTerrainRecycling(struct CTerrain *ter) 392int chopUpdateTerrainRecycling(struct CTerrain *ter)
393{ 393{
394 int i=1; 394 int i=1;
395 int ret = 0;
396 int iNewNodePos,g,v; 395 int iNewNodePos,g,v;
397 while(i < ter->iNodesCount) 396 while(i < ter->iNodesCount)
398 { 397 {
@@ -412,8 +411,6 @@ int chopUpdateTerrainRecycling(struct CTerrain *ter)
412 v*=5; 411 v*=5;
413 412
414 chopAddTerrainNode(ter,iNewNodePos,g - iR(-v,v)); 413 chopAddTerrainNode(ter,iNewNodePos,g - iR(-v,v));
415 ret=1;
416
417 } 414 }
418 415
419 i++; 416 i++;
@@ -426,7 +423,7 @@ int chopUpdateTerrainRecycling(struct CTerrain *ter)
426int chopTerrainHeightAtPoint(struct CTerrain *ter, int pX) 423int chopTerrainHeightAtPoint(struct CTerrain *ter, int pX)
427{ 424{
428 425
429 int iNodeIndexOne=0,iNodeIndexTwo=0, h, terY1, terY2, terX1, terX2, a, b; 426 int iNodeIndexOne=0,iNodeIndexTwo=0, h, terY1, terY2, terX2, a, b;
430 float c,d; 427 float c,d;
431 428
432 int i=0; 429 int i=0;
@@ -444,7 +441,7 @@ int chopTerrainHeightAtPoint(struct CTerrain *ter, int pX)
444 terY1 = ter->mNodes[iNodeIndexOne].y; 441 terY1 = ter->mNodes[iNodeIndexOne].y;
445 terY2 = ter->mNodes[iNodeIndexTwo].y; 442 terY2 = ter->mNodes[iNodeIndexTwo].y;
446 443
447 terX1 = 0; 444 /* terX1 = 0; */
448 terX2 = ter->mNodes[iNodeIndexTwo].x - ter->mNodes[iNodeIndexOne].x; 445 terX2 = ter->mNodes[iNodeIndexTwo].x - ter->mNodes[iNodeIndexOne].x;
449 446
450 pX-= ter->mNodes[iNodeIndexOne].x; 447 pX-= ter->mNodes[iNodeIndexOne].x;