[openjk] 105/130: SG: Fix compiling warnings

Simon McVittie smcv at debian.org
Fri Oct 28 11:09:25 UTC 2016


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch debian/master
in repository openjk.

commit 0a268e7d9f65bf3ce21aa7639ffbfbddad8f594d
Author: bibendovsky <bibendovsky at hotmail.com>
Date:   Sun Oct 9 17:41:17 2016 +0300

    SG: Fix compiling warnings
---
 code/server/sv_savegame.cpp | 2 +-
 codeJK2/icarus/Sequence.cpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/code/server/sv_savegame.cpp b/code/server/sv_savegame.cpp
index 1f49def..f9191e2 100644
--- a/code/server/sv_savegame.cpp
+++ b/code/server/sv_savegame.cpp
@@ -453,7 +453,7 @@ static void WriteGame(qboolean autosave)
 
 static qboolean ReadGame (void)
 {
-	qboolean qbAutoSave;
+	qboolean qbAutoSave = qfalse;
 
 	ojk::SavedGameHelper saved_game(
 		&ojk::SavedGame::get_instance());
diff --git a/codeJK2/icarus/Sequence.cpp b/codeJK2/icarus/Sequence.cpp
index 325984e..f2ab750 100644
--- a/codeJK2/icarus/Sequence.cpp
+++ b/codeJK2/icarus/Sequence.cpp
@@ -534,7 +534,7 @@ int CSequence::Load( void )
 		INT_ID('S', 'I', 'T', 'R'),
 		m_iterations);
 
-	int	numCommands;
+	int	numCommands = 0;
 
 	//Get the number of commands
 	saved_game.read_chunk<int32_t>(

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/openjk.git



More information about the Pkg-games-commits mailing list