Unused initialisations were commented out on parts where there may be a
need for future use.

Signed-off-by: Ali Polatel <a...@exherbo.org>
---
 src/position.cpp |  4 ++--
 src/recog.cpp    | 10 +++++-----
 src/scidlet.cpp  |  2 +-
 src/scmerge.cpp  | 10 +++++-----
 4 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/src/position.cpp b/src/position.cpp
index ffcb3c5..d0452d5 100644
--- a/src/position.cpp
+++ b/src/position.cpp
@@ -1137,7 +1137,7 @@ Position::MatchPawnMove (MoveList * mlist, fyleT 
fromFyle, squareT to, pieceT pr
     pieceT pawn;
     rankT toRank = square_Rank(to);
     fyleT toFyle = square_Fyle(to);
-    rankT promoteRank = (ToMove == WHITE ? RANK_8 : RANK_1);
+    rankT promoteRank;
 
     // from is the from square; backup is the alternative from square
     // for a pawn move two squares forward.
@@ -3004,7 +3004,7 @@ Position::PrintFEN (char * str, uint flags)
 {
     ASSERT (str != NULL);
     uint emptyRun, iRank, iFyle;
-    pieceT * pBoard = Board;
+    pieceT * pBoard;
     for (iRank = 0; iRank < 8; iRank++) {
         pBoard = &(Board[(7 - iRank) * 8]);
         emptyRun = 0;
diff --git a/src/recog.cpp b/src/recog.cpp
index 836c18d..9b2850d 100644
--- a/src/recog.cpp
+++ b/src/recog.cpp
@@ -509,7 +509,7 @@ Recognizer::KMKP (Position * pos)
     bp = sqlist[1];
     if (material[WP] == 1) {
         squareT t = wk; wk = square_FlipRank(bk); bk = square_FlipRank(t);
-        t = wm; wm = square_FlipRank(bp); bp = square_FlipRank(t);
+        t = wm; /* wm = square_FlipRank(bp);*/ bp = square_FlipRank(t);
         stm = color_Flip(stm);
     }
 
@@ -545,7 +545,7 @@ Recognizer::KQKP (Position * pos)
     bp = sqlist[1];
     if (material[WQ] != 1) {
         squareT t = wk; wk = square_FlipRank(bk); bk = square_FlipRank(t);
-        t = wq; wq = square_FlipRank(bp); bp = square_FlipRank(t);
+        t = wq; /* wq = square_FlipRank(bp); */ bp = square_FlipRank(t);
         stm = color_Flip(stm);
     }
 
@@ -617,7 +617,7 @@ Recognizer::KRKP (Position * pos)
 {
     byte * material = pos->GetMaterial();
     squareT wk, bk, wr, bp;
-    colorT stm = pos->GetToMove();
+    // colorT stm = pos->GetToMove();
 
     // Find piece squares with White having the rook:
     wk = pos->GetKingSquare(WHITE);
@@ -629,7 +629,7 @@ Recognizer::KRKP (Position * pos)
     if (material[WR] != 1) {
         squareT t = wk; wk = square_FlipRank(bk); bk = square_FlipRank(t);
         t = wr; wr = square_FlipRank(bp); bp = square_FlipRank(t);
-        stm = color_Flip(stm);
+        // stm = color_Flip(stm);
     }
 
     // There are only recognized draws when the pawn is defended by its king:
@@ -639,7 +639,7 @@ Recognizer::KRKP (Position * pos)
 
     // Make sure the pawn is on the queenside:
     if (square_Fyle(bp) >= E_FYLE) {
-        wk = square_FlipFyle(wk);  wr = square_FlipFyle(wr);
+        wk = square_FlipFyle(wk);  // wr = square_FlipFyle(wr);
         bk = square_FlipFyle(bk);  bp = square_FlipFyle(bp);
     }
 
diff --git a/src/scidlet.cpp b/src/scidlet.cpp
index 02c5104..8bef825 100644
--- a/src/scidlet.cpp
+++ b/src/scidlet.cpp
@@ -163,7 +163,7 @@ void
 setSearchTime (Engine * engine)
 {
     int msLeft = tc.centiSecondsLeft * 10;
-    int msThisMove = msLeft;
+    int msThisMove;
 
     if (tc.fixedTimeControl) {
         msThisMove = msLeft;
diff --git a/src/scmerge.cpp b/src/scmerge.cpp
index d1001c0..7dbb862 100644
--- a/src/scmerge.cpp
+++ b/src/scmerge.cpp
@@ -87,27 +87,27 @@ mergeFile(Index * targetIndex, NameBase * targetNameBase, 
GFile * targetGFile, c
 
         // We add each name to the new namebase and update the IDs:
         uint newID;
-        err = targetNameBase->AddName (NAME_PLAYER,
+        /* err = */ targetNameBase->AddName (NAME_PLAYER,
                                        iE.GetWhiteName (sourceNameBase), 
&newID);
         targetNameBase->IncFrequency (NAME_PLAYER, newID, 1);
         iE.SetWhite (newID);
 
-        err = targetNameBase->AddName (NAME_PLAYER,
+        /* err = */ targetNameBase->AddName (NAME_PLAYER,
                                        iE.GetBlackName (sourceNameBase), 
&newID);
         targetNameBase->IncFrequency (NAME_PLAYER, newID, 1);
         iE.SetBlack (newID);
 
-        err = targetNameBase->AddName (NAME_EVENT,
+        /* err = */ targetNameBase->AddName (NAME_EVENT,
                                        iE.GetEventName (sourceNameBase), 
&newID);
         targetNameBase->IncFrequency (NAME_EVENT, newID, 1);
         iE.SetEvent (newID);
 
-        err = targetNameBase->AddName (NAME_SITE,
+        /* err = */ targetNameBase->AddName (NAME_SITE,
                                        iE.GetSiteName (sourceNameBase), 
&newID);
         targetNameBase->IncFrequency (NAME_SITE, newID, 1);
         iE.SetSite (newID);
 
-        err = targetNameBase->AddName (NAME_ROUND,
+        /* err = */ targetNameBase->AddName (NAME_ROUND,
                                        iE.GetRoundName (sourceNameBase), 
&newID);
         targetNameBase->IncFrequency (NAME_ROUND, newID, 1);
         iE.SetRound (newID);
-- 
2.10.0

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Scidvspc-users mailing list
Scidvspc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scidvspc-users

Reply via email to