Package: atom4
Version: 4.1-5.1
Severity: minor
User: [email protected]
Usertags: clang-ftbfs
Hello,
Using the rebuild infrastructure http://buildd-clang.debian.net/, your
package fails to build with clang (instead of gcc).
You can see the full log here:
http://buildd-clang.debian.net/fetch.php?pkg=atom4&arch=amd64&ver=4.1-5.1&stamp=1366074247
The attached patch fixes it.
Thanks,
Sylvestre
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (600, 'testing'), (500, 'unstable'), (500, 'stable'), (1,
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.2.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Index: atom4-4.1/engine/ai.cc
===================================================================
--- atom4-4.1.orig/engine/ai.cc 2013-05-30 16:39:37.000000000 +0200
+++ atom4-4.1/engine/ai.cc 2013-05-30 16:42:24.964551041 +0200
@@ -340,4 +340,5 @@
#endif //DEBUG_AI
make_move(); // move if it's our turn after reset
+ return 0;
}
Index: atom4-4.1/x/xscoreboard.cc
===================================================================
--- atom4-4.1.orig/x/xscoreboard.cc 2013-05-30 16:39:37.000000000 +0200
+++ atom4-4.1/x/xscoreboard.cc 2013-05-30 16:43:22.276552620 +0200
@@ -145,7 +145,7 @@
XDrawString(disp, buffer, textgc, PL_X, starty+PL_MSG_Y+scorefont->ascent,
buf, strlen(buf));
} else if (game->winner()==STALEMATE) {
- snprintf(buf, TEXTBUF_MAX, "=== DRAW: no more moves left ===", player);
+ snprintf(buf, TEXTBUF_MAX, "=== DRAW: no more moves left ===");
XDrawString(disp, buffer, textgc, PL_X, starty+PL_MSG_Y+scorefont->ascent,
buf, strlen(buf));
}