From fa30a2ba1758764c203477505fd644fc21ba2dc2 Mon Sep 17 00:00:00 2001
From: Oliver Bock <oliver.bock@aei.mpg.de>
Date: Tue, 8 Apr 2008 19:47:04 +0200
Subject: [PATCH] Moved counter into conditional code block (avoiding compiler
 warning)

---
 WindowManager.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/WindowManager.cpp b/WindowManager.cpp
index 2e7189b..a02d892 100644
--- a/WindowManager.cpp
+++ b/WindowManager.cpp
@@ -156,8 +156,9 @@ void WindowManager::eventLoop()
 		if (event.type == SDL_USEREVENT &&
 			event.user.code == RenderEvent) {
 			
-			static int i = 0;
 #ifdef DEBUG_VALGRIND
+			// stop after i iterations when running valgrinded
+			static int i = 0;
 			if(i < 500) {
 				i++;
 #endif
-- 
GitLab