* 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
@ -796,12 +796,12 @@ rb_vm_bugreport(void)
|
|||||||
static void *trace[MAX_NATIVE_TRACE];
|
static void *trace[MAX_NATIVE_TRACE];
|
||||||
int n = backtrace(trace, MAX_NATIVE_TRACE);
|
int n = backtrace(trace, MAX_NATIVE_TRACE);
|
||||||
char **syms = backtrace_symbols(trace, n);
|
char **syms = backtrace_symbols(trace, n);
|
||||||
int i;
|
|
||||||
|
|
||||||
if (syms) {
|
if (syms) {
|
||||||
#ifdef __ELF__
|
#ifdef __ELF__
|
||||||
rb_dump_backtrace_with_lines(n, trace, syms);
|
rb_dump_backtrace_with_lines(n, trace, syms);
|
||||||
#else
|
#else
|
||||||
|
int i;
|
||||||
for (i=0; i<n; i++) {
|
for (i=0; i<n; i++) {
|
||||||
fprintf(stderr, "%s\n", syms[i]);
|
fprintf(stderr, "%s\n", syms[i]);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user