mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* vm_dump.c (rb_vm_bugreport): suppress a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2f26014e38
commit
af67081446
1 changed files with 1 additions and 1 deletions
|
@ -796,12 +796,12 @@ rb_vm_bugreport(void)
|
|||
static void *trace[MAX_NATIVE_TRACE];
|
||||
int n = backtrace(trace, MAX_NATIVE_TRACE);
|
||||
char **syms = backtrace_symbols(trace, n);
|
||||
int i;
|
||||
|
||||
if (syms) {
|
||||
#ifdef __ELF__
|
||||
rb_dump_backtrace_with_lines(n, trace, syms);
|
||||
#else
|
||||
int i;
|
||||
for (i=0; i<n; i++) {
|
||||
fprintf(stderr, "%s\n", syms[i]);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue