-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix rb_warn and rb_warning macros #1886
Conversation
These can't have a ; at the end of them - think of the case: if (...) rb_warn(...); else ... This won't work with the ;; you'll get before the else.
@chrisseaton The byebug link you provided shows an empty set of changes. |
Could we use |
We should add some kind of check to not make this mistake again. Maybe simply a |
I think we can reasonable convert them to I think there is a warning we can switch on in clang to help catch this. |
@chrisseaton Thanks for the fix! |
PullRequest: truffleruby/1291
These can't have a
;
at the end of them - think of the case:This won't work with the
;;
you'll get before theelse
.The change in
byebug
: deivid-rodriguez/byebug@v11.0.1...v11.1.0#diff-cba2d7f9da55366f27f120efb50dbb19R364Much of the Ruby ecosystem seems to be broken without this fix.
Shopify#1