diff options
author | 卜部昌平 <[email protected]> | 2020-06-29 11:43:48 +0900 |
---|---|---|
committer | 卜部昌平 <[email protected]> | 2020-06-29 11:43:48 +0900 |
commit | 94ab244b43e1aa59dfef9f200b1c253f70975c7e (patch) | |
tree | 9b512b8ca9ec28331d16d6619c820e083120f38b /eval.c | |
parent | 1020e120e060c00eca456d5a129c344daa472407 (diff) |
rb_class_modify_check: add UNREACHABLE
(I was not aware of this because I use clang, but) it seems gcc cannot
detect reachablility of this point. It renders an unused variable
warning, which is a false positive. Let us suppress the compiler.
https://github.com/ruby/ruby/runs/816997191#step:9:62
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -489,6 +489,7 @@ rb_class_modify_check(VALUE klass) break; default: Check_Type(klass, T_CLASS); + UNREACHABLE; } } rb_frozen_error_raise(klass, "can't modify frozen %s: %"PRIsVALUE, desc, klass); |