Skip to content

Avoid redefinition of struct layout#35

Open
beechtom wants to merge 1 commit intozentourist:mainfrom
beechtom:34/struct-redefinition
Open

Avoid redefinition of struct layout#35
beechtom wants to merge 1 commit intozentourist:mainfrom
beechtom:34/struct-redefinition

Conversation

@beechtom
Copy link
Copy Markdown

@beechtom beechtom commented Mar 25, 2021

This adds a guard that prevents the redefinition of the
GSSAPI::LibGSSAPI::GssOID struct's layout. Previously, the class would
call the layout method and redefine the layout each time the class was
referenced. This behavior is deprecated in FFI >= 1.12.0 and will be
disallowed in FFI >= 2.0.

This fixes #34

This adds a guard that prevents the redefinition of the
`GSSAPI::LibGSSAPI::GssOID` struct's layout. Previously, the class would
call the `layout` method and redefine the layout each time the class was
referenced. This behavior is deprecated in FFI >= 1.12.0 and will be
disallowed in FFI >= 2.0.
@beechtom
Copy link
Copy Markdown
Author

beechtom commented Jun 30, 2021

@zenchild Just commenting to bring this to your attention. Hoping it can be reviewed and released soon. 🤞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Redefinition as in ... gssapi-1.3.1/lib/gssapi/lib_gssapi_loader.rb:10:in `<class:GssOID>' will be disallowed in ffi-2.0

1 participant