Package: vftool
Severity: minor
Tags: patch
User: pkg-llvm-t...@lists.alioth.debian.org
Usertags: clang-ftbfs

Hello,

Using the rebuild infrastructure, your package fails to build with clang
(instead of gcc).

Detected this kind of error:
http://clang.debian.net/status.php?version=3.6.0&key=FUNCTION_RETURNS_VALUE

Full build log is available here:
http://clang.debian.net/logs/2015-03-25/vftool_2.0alpha-4.1_unstable_clang.log 


I have attached a patch to fix this error.

Regards,
--Arthur Marble


-- System Information:
Debian Release: sid (unstable)
Architecture: amd64 (x86_64)
Kernel: Linux 4.2.0-1-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE="en_US.UTF-8"
Shell: /bin/sh linked to /bin/dash
Compiler: Debian clang version 3.6.2-3 (based on LLVM 3.6.2)
--- a/mka2bkjvf.c
+++ b/mka2bkjvf.c
@@ -172,7 +172,7 @@
     byte b[sizeof(int)], db[sizeof(int)];
 
     if ((ct = getctype(jis, jfmfi)) == 0)
-	return;
+	return 0;
     pl = 3;	/* SET2 jis */
     for (; 0 < curfix->code && curfix->code < jis; curfix++)
 	;
@@ -194,7 +194,7 @@
     } else
 	gl = dgl = 0;
     if (gl == 0 && dgl == 0 && jfmfi->ch[ct].tfmw == jfmfi->ch[0].tfmw)
-	return;
+	return 0;
     if (gl != 0) {
 	n = inttob(b, gl, TRUE);
 	pl += 1+n;
--- a/mkbkv2hjvf.c
+++ b/mkbkv2hjvf.c
@@ -148,7 +148,7 @@
 	if (vc->cc == jis)
 	    break;
     if (vc->cc == 0)
-	return;
+	return 0;
     rn = inttob(rb, rdisp-vc->y, TRUE);
     pl += 1+rn;
     dn = inttob(db, ddisp-vc->x, TRUE);
--- a/mkvsyvf.c
+++ b/mkvsyvf.c
@@ -158,7 +158,7 @@
 	sp_end = mirror_end;
 	sp_end_len = mirror_end_len;
     } else
-	return;
+	return 0;
     pl = 3;	/* SET2 cc */
     rn = inttob(rb, rd, TRUE);
     pl += 1+rn;
--- a/mkvsydvf.c
+++ b/mkvsydvf.c
@@ -106,7 +106,7 @@
 	rd = depthratio;
 	dd = -rdisp;
     } else
-	return;
+	return 0;
     pl = 5;	/* DIR 1 SET2 cc */
     rn = inttob(rb, rd, TRUE);
     pl += 1+rn;

Reply via email to