Skip to content

Commit

Permalink
avoid warning in ruby3
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Nov 29, 2021
1 parent e7c0cb1 commit 4d275eb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/ruby/yast/ui.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Yast
# This is a counterpart to init_ui in the C code.
# It really belongs near it but I don't know how to code a proc in C.
ObjectSpace.define_finalizer(Yast, proc { Yast.ui_finalizer })
end
# This is a counterpart to init_ui in the C code.
# It really belongs near it but I don't know how to code a proc in C.
# Workaround warning in ruby3. See e.g. https://github.com/appsignal/rdkafka-ruby/pull/160/files#r656637223
mod = Yast
ObjectSpace.define_finalizer(mod, proc { mod.ui_finalizer })

0 comments on commit 4d275eb

Please sign in to comment.