From 07703bdac40f5b7807b627d289e67897bf2b7396 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Tue, 6 Jan 2015 16:12:43 +0100 Subject: [PATCH] fixed compiler warning on non-linux archs --- kernel/log.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kernel/log.cc b/kernel/log.cc index 2be425ffd..70bff8f5b 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() { -- 2.30.2