Defect #14511

warning: class variable access from toplevel on Ruby 2.0

Added by Pascal H over 4 years ago. Updated over 4 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Ruby support
Target version:2.3.3
Resolution:Fixed Affected version:2.3.2

Description

At each start this error message appears in httpd error_log:

/path/to/redmine/lib/SVG/Graph/Graph.rb:3: warning: class variable access from toplevel

Version information:

Environment:
  Redmine version                2.3.2.stable
  Ruby version                   2.0.0-p247 (2013-06-27) [x86_64-linux]
  Rails version                  3.2.13
  Environment                    production
  Database adapter               Mysql2
Redmine plugins:
  no plugin installed

[root@localhost ~]# httpd -v
Server version: Apache/2.4.4 (Fedora)
Server built:   May 20 2013 09:27:20
[root@localhost ~]# passenger -v
Phusion Passenger version 4.0.10

Associated revisions

Revision 12052
Added by Jean-Philippe Lang over 4 years ago

Fixed: warning: class variable access from toplevel on Ruby 2.0 (#14511).

Revision 12053
Added by Jean-Philippe Lang over 4 years ago

Merged r12052 from trunk (#14511).

History

#1 Updated by Toshi MARUYAMA over 4 years ago

  • Subject changed from class variable access from toplevel to warning: class variable access from toplevel on Ruby 2.0
  • Category set to Ruby support

#2 Updated by Rhiino Rex over 4 years ago

I got the same warning.
Is it safe to ignore?

#3 Updated by Etienne Massip over 4 years ago

Rhiino Rex wrote:

I got the same warning.
Is it safe to ignore?

Yes it is.

#4 Updated by Jean-Philippe Lang over 4 years ago

  • Status changed from New to Closed
  • Target version set to 2.3.3
  • Resolution set to Fixed

Fixed in r12052.

Also available in: Atom PDF