Bug #4083

warning in rexml/doctype.rb

Added by tenderlovemaking (Aaron Patterson) over 1 year ago. Updated about 1 year ago.

[ruby-core:33305]
Status:Closed Start date:11/24/2010
Priority:Normal Due date:
Assignee:kou (Kouhei Sutou) % Done:

100%

Category:lib
Target version:2.0.0
ruby -v:ruby 1.9.3dev (2010-11-24 trunk 29890) [x86_64-darwin10.5.0]

Description

rexml/doctype.rb produces this warning:

/Users/apatterson/.local/lib/ruby/1.9.1/rexml/doctype.rb:254: warning: `+' after local variable is interpreted as binary operator
/Users/apatterson/.local/lib/ruby/1.9.1/rexml/doctype.rb:254: warning: even though it seems like unary operator

I've attached a patch that fixes the problem.

rexml.patch - rexml/doctype.rb fix (380 Bytes) tenderlovemaking (Aaron Patterson), 11/24/2010 02:29 am

Associated revisions

Revision 30113
Added by kou (Kouhei Sutou) over 1 year ago

* lib/rexml/doctype.rb, test/rexml/test_doctype.rb: suppress warnings. [ruby-core:33305] Reported by Aaron Patterson. Thanks!!!

History

Updated by kou (Kouhei Sutou) over 1 year ago

  • Category set to lib
  • Status changed from Open to Assigned
  • Target version set to 2.0.0
Thanks for reporting.
I'll fix it with code cleanup and test cases. Please wait. (maybe a few weeks...)

Updated by kou (Kouhei Sutou) over 1 year ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100
This issue was solved with changeset r30113.
Aaron, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

Also available in: Atom PDF