summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-08 12:39:13 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-08 12:39:13 +0000
commitaf6708144630678ada8684bb77228ccc2056cb56 (patch)
treec4e68840b644b9d157d1ad824788aaff8f398aac
parent2f26014e38ba5a407c71d1b548158224459e6548 (diff)
* 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
-rw-r--r--vm_dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_dump.c b/vm_dump.c
index fd8f9e5..741b4ad 100644
--- a/vm_dump.c
+++ b/vm_dump.c
@@ -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]);
}