Skip to content

Commit

Permalink
Suppress unused-but-set-variable warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Jul 5, 2021
1 parent 3dacc14 commit 3db7f63
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ruby.c
Expand Up @@ -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);
Expand Down

0 comments on commit 3db7f63

Please sign in to comment.