Package: sundials
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/sundials_2.5.0-3_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/sundialsTB/kinsol/kim/src/kim.c
+++ b/sundialsTB/kinsol/kim/src/kim.c
@@ -679,7 +679,7 @@
   int status;
 
 
-  if (kimData == NULL) return;
+  if (kimData == NULL) return 0;
 
   status = KINGetNumNonlinSolvIters(kin_mem, &nni);
   if (status != KIN_SUCCESS) goto error_return;
@@ -807,5 +807,5 @@
 
   KINFree(&kin_mem);
 
-  return;
+  return 0;
 }
-- 
debian-science-maintainers mailing list
debian-science-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers

Reply via email to