Warning in FFI::Struct: "instance variable @byte_order not initialized"
-----------------------------------------------------------------------
Key: JRUBY-5759
URL: http://jira.codehaus.org/browse/JRUBY-5759
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.6.1
Reporter: Matijs van Zuijlen
Assignee: Thomas E Enebo
Priority: Minor
Attachments: jruby-undefined-byte_order.patch
The following code shows a warning when run with '-w':
{noformat}
require 'ffi'
class MyStruct < FFI::Struct
layout :foo, :int
end
{noformat}
The warning is:
bq. [...]/jruby-1.6.1/lib/ruby/site_ruby/shared/ffi/struct.rb:171 warning:
instance variable @byte_order not initialized
Attached is a trivial patch that fixes this issue.
--
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