summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2019-11-18 12:00:19 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2019-11-18 18:28:03 +0900
commit7a9b2039b7b82f081f2cab40a4fbbc8b01231ca4 (patch)
treea58f2121ea53262242acef64f046717158676946 /ruby.c
parent57cd4623cfb56d12eb308eaf5fb09612e4572c19 (diff)
delete unused codes
Suppress compiler warnings.
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ruby.c b/ruby.c
index 1f0bf88..6edc5c4 100644
--- a/ruby.c
+++ b/ruby.c
@@ -1217,12 +1217,9 @@ proc_options(long argc, char **argv, ruby_cmdline_options_t *opt, int envopt)
case 'T':
{
size_t numlen;
- int v = 1;
if (*++s) {
- v = scan_oct(s, 2, &numlen);
- if (numlen == 0)
- v = 1;
+ scan_oct(s, 2, &numlen);
s += numlen;
}
}