Fix ruby warning using clang in director exception code
Suppresses warning: error: control may reach end of non-void function [-Werror,-Wreturn-type] The UNUSED macro is not expanded in ruby.h for rb_exc_raise for clang when it ought to be. For patch #512
This commit is contained in:
parent
01d4bc391c
commit
567d4690cf
1 changed files with 1 additions and 0 deletions
|
|
@ -2971,6 +2971,7 @@ public:
|
|||
Printf(rescue->code, "if (%s == 0) ", depthCountName);
|
||||
Printv(rescue->code, Str(tm), "\n", NIL);
|
||||
Printv(rescue->code, "rb_exc_raise(error);\n", NIL);
|
||||
Printv(rescue->code, "return Qnil;\n", NIL);
|
||||
Printv(rescue->code, "}", NIL);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue