diff options
author | Clifford Wolf <clifford@clifford.at> | 2015-01-06 16:12:43 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2015-01-06 16:12:43 +0100 |
commit | 07703bdac40f5b7807b627d289e67897bf2b7396 (patch) | |
tree | 6abb83244b5a3ed1c5862c0a64ed2a4f9e432b0b /kernel | |
parent | da7205010771f4dd0db6ffa9ff4e373a2a03588d (diff) | |
download | yosys-07703bdac40f5b7807b627d289e67897bf2b7396.tar.gz yosys-07703bdac40f5b7807b627d289e67897bf2b7396.tar.bz2 yosys-07703bdac40f5b7807b627d289e67897bf2b7396.zip |
fixed compiler warning on non-linux archs
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/log.cc | 6 |
1 files 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() { |