Package: pmacct
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/pmacct_1.5.0-4_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/src/plugin_hooks.c
+++ b/src/plugin_hooks.c
@@ -868,7 +868,7 @@
   char *rk = NULL, sep[] = "-";
   int len = 0;
 
-  if (!name || !type) return;
+  if (!name || !type) return NULL;
 
   len = strlen(name) + strlen(type) + 2;
 
@@ -918,7 +918,7 @@
   struct plugin_pipe_amqp_sleeper *pas;
   int size = sizeof(struct plugin_pipe_amqp_sleeper);
 
-  if (!amqp_host || !flag) return;
+  if (!amqp_host || !flag) return NULL;
 
   pas = malloc(size);
 

Reply via email to