Skip to content

Fix Ruby 2.7 options warning during compilation#153

Open
64kramsystem wants to merge 1 commit intopmq20:masterfrom
64kramsystem:sav/fix_ruby27_compilation_warning
Open

Fix Ruby 2.7 options warning during compilation#153
64kramsystem wants to merge 1 commit intopmq20:masterfrom
64kramsystem:sav/fix_ruby27_compilation_warning

Conversation

@64kramsystem
Copy link
Contributor

During compilation, the usual Ruby 2.7 warning is raised:

lib/compiler/utils.rb:93: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/path/to/ruby/2.7.0/fileutils.rb:463: warning: The called method `cp_r' is defined here

The (conventional) fix applied is to unpack the keyword arguments hash.

During compilation, the usual Ruby 2.7 warning is raised:

    lib/compiler/utils.rb:93: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
    /path/to/ruby/2.7.0/fileutils.rb:463: warning: The called method `cp_r' is defined here

The (conventional) fix applied is to unpack the keyword arguments hash.
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.

2 participants