Skip to content
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 ruby 1.9.3 warnings #79

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

agrimm
Copy link
Contributor

@agrimm agrimm commented Mar 26, 2013

Fix warnings made by Ruby 1.9.2 or 1.9.3.

This is similar to #64, but only some of the changes are included, and the commits have got more verbose comments.

@ngoto
Copy link
Member

ngoto commented Mar 26, 2013

The 3 changes to defline.rb and alignment.rb are included.

@agrimm
Copy link
Contributor Author

agrimm commented Mar 28, 2013

Will 1a2d1de be included? Based on bd973e0 I assume you don't regard it as a breaking commit.

@ngoto
Copy link
Member

ngoto commented Apr 4, 2013

I don't like 1a2d1de because the variables will be used in the future code.

@agrimm
Copy link
Contributor Author

agrimm commented Apr 7, 2013

The variable names are still there, but commented out.

Alternatively, an underscore _ could be put in front of variable names that are currently unused. That would silence warnings about unused variables in Ruby 2.0 . https://github.com/ruby/ruby/blob/ruby_2_0_0/NEWS#L22

@yb66
Copy link
Contributor

yb66 commented Mar 4, 2014

my 2 pence

if there's code that isn't being used, it should be removed. It's easy enough to keep a separate feature branch for things like this to be merged in when they're ready to be used.

Regards,
Iain

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants