Source: xpilot-ng
Version: 4.7.3-2
Severity: minor
Tags: patch
User: pkg-llvm-t...@lists.alioth.debian.org
Usertags: clang-ftbfs

Hello,

Your package fails to build with clang instead of gcc [-Wreturn-type].
The attached patch fixes it. Please check this is the proper return value.

Buildlogs and patch:
https://github.com/nonas/debian-clang/tree/master/buildlogs/xpilot-ng

NB: I had to add 4 files to debian/source/include-binaries in order to build 
the source package:
src/client/caudio.h.gch
src/client/clientcommand.h.gch
src/client/gfx2d.h.gch
src/client/recordfmt.h.gch

Regards,
Nicolas


-- System Information:
Debian Release: jessie/sid
  APT prefers testing-updates
  APT policy: (500, 'testing-updates'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.12-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Description: fix FTBFS with clang instead of gcc [-Wreturn-type]
Author: Nicolas Sévelin-Radiguet <nic...@free.fr>
Last-Update: 2014-03-03
--- a/src/server/suibotdef.c
+++ b/src/server/suibotdef.c
@@ -405,7 +405,7 @@
   /* ignore if there is enough time to deal with this object  later */
   if((time_until_closest < 0) || (time_until_closest > maxtime))
     /*option instead of fixed value: options.dodgetime))*/
-    return;
+    return false;
 
   /* get the square of the distance */
   sqdistance =

Reply via email to