ERB warning: useless use of a variable in void context with -W --------------------------------------------------------------
Key: JRUBY-4860 URL: http://jira.codehaus.org/browse/JRUBY-4860 Project: JRuby Issue Type: Bug Components: Standard Library Affects Versions: JRuby 1.5.1 Environment: JRuby 1.5.1, Ubuntu 10 Reporter: Daniel Berger Assignee: Thomas E Enebo This code emits "(erb): 7 warning: useless use of a variable in void context" with ERB using JRuby 1.5.1 if you run with the -W switch: {noformat} # jruby -W test.rb require 'erb' header = 'stdio.h' template = %Q{ #include <<%= header %>> int main(){ return 0; } } puts ERB.new(template).result(binding) {noformat} MRI does not emit this warning. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email