mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-07 06:33:24 +00:00
fixed compiler warning on non-linux archs
This commit is contained in:
parent
da72050107
commit
07703bdac4
1 changed files with 4 additions and 2 deletions
|
@ -253,9 +253,9 @@ void log_pop()
|
||||||
log_flush();
|
log_flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __linux__
|
||||||
void log_backtrace(const char *prefix, int levels)
|
void log_backtrace(const char *prefix, int levels)
|
||||||
{
|
{
|
||||||
#ifdef __linux__
|
|
||||||
if (levels <= 0) return;
|
if (levels <= 0) return;
|
||||||
|
|
||||||
Dl_info dli;
|
Dl_info dli;
|
||||||
|
@ -341,8 +341,10 @@ void log_backtrace(const char *prefix, int levels)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (levels <= 9) return;
|
if (levels <= 9) return;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
void log_backtrace(const char*, int) { }
|
||||||
|
#endif
|
||||||
|
|
||||||
void log_reset_stack()
|
void log_reset_stack()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue