In what version or patchlevel did the following warning get added?
warning: assigned but unused variable - x
I heard about it from http://www.slideshare.net/tenderlove/nordic-ruby-2011
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A quick git grep showed that this was added in this commit on June 16, 2010, then reverted on June 17, 2010 due to some problems, and was finally added on June 20, 2010.
Note: I ran
git log --reverse -S "assigned but"on the Ruby git repo to find these commits.