summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2024-11-06 11:03:48 +0900
committerNobuyoshi Nakada <nobu.nakada@gmail.com>2024-11-06 12:37:13 +0900
commitc690ca03f33441f299d0b59e4a91fc22bf1781bf (patch)
treecf982e7e9e9d07b123dd6b1a967c72b2c61bb246 /spec
parentab7ab9e4508c24b998703824aa9576fb2e092065 (diff)
Ignore return value of `into_raw_fd`
Fix as the compiler orders: ``` warning: unused return value of `into_raw_fd` that must be used --> ../src/yjit/src/disasm.rs:123:21 | 123 | file.into_raw_fd(); // keep the fd open | ^^^^^^^^^^^^^^^^^^ | = note: losing the raw file descriptor may leak resources = note: `#[warn(unused_must_use)]` on by default help: use `let _ = ...` to ignore the resulting value | 123 | let _ = file.into_raw_fd(); // keep the fd open | +++++++ warning: unused return value of `into_raw_fd` that must be used --> ../src/yjit/src/log.rs:84:21 | 84 | file.into_raw_fd(); // keep the fd open | ^^^^^^^^^^^^^^^^^^ | = note: losing the raw file descriptor may leak resources help: use `let _ = ...` to ignore the resulting value | 84 | let _ = file.into_raw_fd(); // keep the fd open | +++++++ ```
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/12009
Diffstat (limited to 'spec')
0 files changed, 0 insertions, 0 deletions