aboutsummaryrefslogtreecommitdiffstats
path: root/Rakefile
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2012-12-24 21:14:02 +0100
committerXavier Noria <fxn@hashref.com>2012-12-24 21:16:16 +0100
commit26c024e95999e545fbef85a25165234af77ea605 (patch)
treed882bcb5d56b1873be7da4ee84e7dc7f2dbb450d /Rakefile
parentef5d85709d346e55827e88f53430a2cbe1e5fb9e (diff)
downloadrails-26c024e95999e545fbef85a25165234af77ea605.tar.gz
rails-26c024e95999e545fbef85a25165234af77ea605.tar.bz2
rails-26c024e95999e545fbef85a25165234af77ea605.zip
silences "possibly useless use of :: in void context" warnings
The AS utility silence_warnings does not really silence this one, because it is issued at parse-time. It seemed to in some places because the constant was the only expression in the block and therefore it was its return value, that could potentially be used by silence_warnings are return value of the yield call. To bypass the warning we assign to a variable. The chosen variable is "_" because it is special-cased in parse.c not to issue an "assigned but unused variable" warning in turn.
Diffstat (limited to 'Rakefile')
0 files changed, 0 insertions, 0 deletions