Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

gpui_linux: Suppress dead code warning on `wake_sender` (#60090)

Marshall Bowers441de84a77e7
diff --git a/crates/gpui_linux/src/linux/platform.rs b/crates/gpui_linux/src/linux/platform.rs
index f3742f53df5..8aac55d3218 100644
--- a/crates/gpui_linux/src/linux/platform.rs
+++ b/crates/gpui_linux/src/linux/platform.rs
@@ -123,6 +123,10 @@ pub(crate) struct LinuxCommon {
pub(crate) callbacks: PlatformHandlers,
pub(crate) signal: LoopSignal,
pub(crate) menus: Vec<OwnedMenu>,
+ #[cfg_attr(
+ not(all(target_os = "linux", any(feature = "wayland", feature = "x11"))),
+ allow(dead_code)
+ )]
wake_sender: Sender<()>,
wake_listener_started: bool,
}