From: Clifford Wolf Date: Tue, 6 Jan 2015 15:12:43 +0000 (+0100) Subject: fixed compiler warning on non-linux archs X-Git-Tag: yosys-0.5~124 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=07703bdac40f5b7807b627d289e67897bf2b7396;p=yosys.git fixed compiler warning on non-linux archs --- 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() {