From 91bbb7831301f405c56b5de1bd9e7a79f4d302b5 Mon Sep 17 00:00:00 2001 From: Kevin Menard Date: Mon, 17 Jun 2024 16:29:43 -0400 Subject: [PATCH] YJIT: Fix an unused field warning in `DumpDisasm`. --- yjit/src/options.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/yjit/src/options.rs b/yjit/src/options.rs index ca57da2566..5d654f1ee0 100644 --- a/yjit/src/options.rs +++ b/yjit/src/options.rs @@ -125,6 +125,7 @@ pub enum DumpDisasm { // Dump to stdout Stdout, // Dump to "yjit_{pid}.log" file under the specified directory + #[cfg_attr(not(feature = "disasm"), allow(dead_code))] File(std::os::unix::io::RawFd), }