[Scummvm-git-logs] scummvm master -> 3f1ff3eaea0732c48785915741fe711e0d476a3d

digitall 547637+digitall at users.noreply.github.com
Thu Oct 10 15:19:45 CEST 2019


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
3f1ff3eaea SCI: Fix Set But Unused Variable GCC Warning


Commit: 3f1ff3eaea0732c48785915741fe711e0d476a3d
    https://github.com/scummvm/scummvm/commit/3f1ff3eaea0732c48785915741fe711e0d476a3d
Author: D G Turner (digitall at scummvm.org)
Date: 2019-10-10T14:16:24+01:00

Commit Message:
SCI: Fix Set But Unused Variable GCC Warning

Changed paths:
    engines/sci/engine/hoyle5poker.cpp


diff --git a/engines/sci/engine/hoyle5poker.cpp b/engines/sci/engine/hoyle5poker.cpp
index 04fd889..eca840a 100644
--- a/engines/sci/engine/hoyle5poker.cpp
+++ b/engines/sci/engine/hoyle5poker.cpp
@@ -140,7 +140,6 @@ int getCardTotal(SciArray *data, int player) {
 
 	Common::sort(cards, cards + 5, Common::Less<int>());
 
-	int lastCard = -1;
 	int sameRank = 0;
 	int sameSuit = 0;
 	int orderedCards = 0;
@@ -157,8 +156,6 @@ int getCardTotal(SciArray *data, int player) {
 		}
 		if (cards[i] == cards[i + 1] - 1)
 			orderedCards == 0 ? orderedCards += 2 : orderedCards++;
-
-		lastCard = cards[i];
 	}
 
 	bool isFullHouse =





More information about the Scummvm-git-logs mailing list