summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2015-01-06 16:12:43 +0100
committerClifford Wolf <clifford@clifford.at>2015-01-06 16:12:43 +0100
commit07703bdac40f5b7807b627d289e67897bf2b7396 (patch)
tree6abb83244b5a3ed1c5862c0a64ed2a4f9e432b0b
parentda7205010771f4dd0db6ffa9ff4e373a2a03588d (diff)
fixed compiler warning on non-linux archs
-rw-r--r--kernel/log.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/kernel/log.cc b/kernel/log.cc
index 2be425ff..70bff8f5 100644
--- a/kernel/log.cc
+++ b/kernel/log.cc
@@ -253,9 +253,9 @@ void log_pop()
log_flush();
}
+#ifdef __linux__
void log_backtrace(const char *prefix, int levels)
{
-#ifdef __linux__
if (levels <= 0) return;
Dl_info dli;
@@ -341,8 +341,10 @@ void log_backtrace(const char *prefix, int levels)
}
if (levels <= 9) return;
-#endif
}
+#else
+void log_backtrace(const char*, int) { }
+#endif
void log_reset_stack()
{