Package: gltron
Severity: normal
Tags: patch

Dear Maintainer,

gltron currently FTBFS with clang (see the full log here: 
http://clang.debian.net/logs/2012-06-23/gltron_0.70final-10_unstable_clang.log).
 The attached patch fixes this issue.

WBR,
Cyril Roelandt.

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--- gltron-0.70final.orig/src/game/event.c	2012-08-29 19:55:48.852871626 +0200
+++ gltron-0.70final/src/game/event.c	2012-08-29 19:56:33.108872005 +0200
@@ -389,7 +389,7 @@
 			l = doMovement(1, t); /* this can generate new events */
 			if(l != NULL) {
 				for(p = l; p->next != NULL; p = p->next) {
-					if(processEvent((GameEvent*) p->data));
+					(void) processEvent((GameEvent*) p->data);
 				}
 
 			}
--- gltron-0.70final.orig/src/game/timedemo.c	2012-08-29 19:55:48.852871626 +0200
+++ gltron-0.70final/src/game/timedemo.c	2012-08-29 19:58:45.300873115 +0200
@@ -45,7 +45,7 @@
 		l = doMovement(1, t); /* this can generate new events */
 		if(l != NULL) {
 			for(p = l; p->next != NULL; p = p->next) {
-				if(processEvent((GameEvent*) p->data));
+				(void) processEvent((GameEvent*) p->data);
 			}
 
 		}

Reply via email to