summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-07-06 00:09:05 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-07-06 00:09:27 +0900
commit3db7f6353fd3b047b1fa9ea5d88a9bce36e8d46d (patch)
treef45cb8c7fd4d4825c5b746b82604e686897540ed /ruby.c
parent3dacc14fd3dded7feda31c195f6bf6c096c91e21 (diff)
Suppress unused-but-set-variable warning
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ruby.c b/ruby.c
index d192bad05b..a845a812d9 100644
--- a/ruby.c
+++ b/ruby.c
@@ -934,6 +934,8 @@ feature_option(const char *str, int len, void *arg, const unsigned int enable)
rb_exc_raise(rb_exc_new_str(rb_eRuntimeError, mesg));
#undef ADD_FEATURE_NAME
}
+#else
+ (void)set;
#endif
rb_warn("unknown argument for --%s: `%.*s'",
enable ? "enable" : "disable", len, str);