Source: cdebootstrap
Severity: minor
Tags: patch
User: [email protected]
Usertags: clang-ftbfs
Hello,
Using the rebuild infrastructure, your package fails to build with clang
(instead of gcc).
We detected this kinf of error:
http://clang.debian.net/status.php?version=3.4&key=UNUSED_FUNCTION
Full build log is available here:
http://clang.debian.net/logs/2014-01-14/cdebootstrap_0.5.10_unstable_clang.log
Thanks,
Alexander
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.13-1-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--- cdebootstrap-0.5.10/src/frontend/standalone/message.c 2012-05-17 17:15:04.000000000 -0400
+++ cdebootstrap-0.5.10-my/src/frontend/standalone/message.c 2014-06-14 17:31:58.123614316 -0400
@@ -46,10 +46,15 @@
frontend_log_text (msg->log_level, buf);
}
+static int unused ()
+{
+ return 0;
+}
+
void frontend_log_text (di_log_level_flags log_level, const char *msg)
{
FILE *out = stdout;
-
+ unused();
switch (log_level & DI_LOG_LEVEL_MASK)
{
case DI_LOG_LEVEL_ERROR:
@@ -76,11 +81,6 @@
fflush (out);
}
-static int unused ()
-{
- return 0;
-}
-
int frontend_progress_set (int n) __attribute__ ((alias ("unused")));
int frontend_progress_start (int max) __attribute__ ((alias ("unused")));
int frontend_progress_step (int step) __attribute__ ((alias ("unused")));