[xgalaga] 09/16: Add 0004-clang-ftbfs.patch and fix FTBFS with the clang compiler

Markus Koschany apo-guest at moszumanska.debian.org
Sat Dec 12 20:46:52 UTC 2015


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

apo-guest pushed a commit to branch master
in repository xgalaga.

commit ce418129ac8213cc02f221d5c1a446bca85d1656
Author: Markus Koschany <apo at debian.org>
Date:   Sat Dec 12 21:08:51 2015 +0100

    Add 0004-clang-ftbfs.patch and fix FTBFS with the clang compiler
    
    because a void function should not have a returned value.
---
 debian/patches/0004-clang-ftbfs.patch | 14 ++++++++++++++
 debian/patches/series                 |  1 +
 2 files changed, 15 insertions(+)

diff --git a/debian/patches/0004-clang-ftbfs.patch b/debian/patches/0004-clang-ftbfs.patch
new file mode 100644
index 0000000..ff6cab9
--- /dev/null
+++ b/debian/patches/0004-clang-ftbfs.patch
@@ -0,0 +1,14 @@
+--- a/title.c
++++ b/title.c
+@@ -117,9 +117,9 @@ void read_credits()
+ 
+     j = 0; lines = 0;
+     chFBuf = (char *) malloc (8000+1);
+-    if (chFBuf == 0) return (-1);
++    if (chFBuf == 0) return;
+     gchLBuf = (char *) malloc (LINESIZE+1);
+-    if (gchLBuf == 0) return (-2);
++    if (gchLBuf == 0) return;
+     hsf = open (CREDITSFILE, O_RDONLY);
+     if ( hsf > 0 ) 
+     {
diff --git a/debian/patches/series b/debian/patches/series
index f464d54..3059a7e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 0001-manpages-install.patch
 0002-implicit-declarations.patch
 0003-obsolete-xf86dga.patch
+0004-clang-ftbfs.patch

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



More information about the Pkg-games-commits mailing list