mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Suppress unused-but-set-variable warning
This commit is contained in:
parent
3dacc14fd3
commit
3db7f6353f
1 changed files with 2 additions and 0 deletions
2
ruby.c
2
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);
|
||||
|
|
Loading…
Reference in a new issue