From 702c81cafe6cb0518b4320860d0c2b738a94a327 Mon Sep 17 00:00:00 2001 From: fufesou Date: Wed, 26 Oct 2022 07:43:54 -0700 Subject: [PATCH] win_fix_multi_tab: linux build Signed-off-by: fufesou --- libs/clipboard/src/context_send.rs | 1 - src/server/wayland.rs | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/libs/clipboard/src/context_send.rs b/libs/clipboard/src/context_send.rs index 869e8a11b..b19270a37 100644 --- a/libs/clipboard/src/context_send.rs +++ b/libs/clipboard/src/context_send.rs @@ -2,7 +2,6 @@ use crate::cliprdr::*; use hbb_common::log; use std::sync::Mutex; -#[cfg(windows)] lazy_static::lazy_static! { static ref CONTEXT_SEND: ContextSend = ContextSend{addr: Mutex::new(0)}; } diff --git a/src/server/wayland.rs b/src/server/wayland.rs index 8cf1623c5..de304c459 100644 --- a/src/server/wayland.rs +++ b/src/server/wayland.rs @@ -249,8 +249,8 @@ pub(super) fn release_resouce() { if *write_lock != 0 { let cap_display_info: *mut CapDisplayInfo = *write_lock as _; unsafe { - let box_capturer = Box::from_raw((*cap_display_info).capturer.0); - let box_cap_display_info = Box::from_raw(cap_display_info); + let _box_capturer = Box::from_raw((*cap_display_info).capturer.0); + let _box_cap_display_info = Box::from_raw(cap_display_info); *write_lock = 0; } }