diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-08 12:39:13 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-08 12:39:13 +0000 |
commit | af6708144630678ada8684bb77228ccc2056cb56 (patch) | |
tree | c4e68840b644b9d157d1ad824788aaff8f398aac | |
parent | 2f26014e38ba5a407c71d1b548158224459e6548 (diff) | |
download | ruby-af6708144630678ada8684bb77228ccc2056cb56.tar.gz |
* 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.c | 2 |
1 files changed, 1 insertions, 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]); } |