Merge pull request #420 from logiclrd/fix-warning

Fix build warnings
This commit is contained in:
RustDesk
2025-11-02 21:22:28 +08:00
committed by GitHub
2 changed files with 2 additions and 0 deletions

View File

@@ -1582,6 +1582,7 @@ impl PeerConfig {
fn default_options() -> HashMap<String, String> {
let mut mp: HashMap<String, String> = Default::default();
let _ =
[
keys::OPTION_CODEC_PREFERENCE,
keys::OPTION_CUSTOM_FPS,

View File

@@ -62,6 +62,7 @@ extern "C" fn breakdown_signal_handler(sig: i32) {
.ok();
}
unsafe {
#[allow(static_mut_refs)]
if let Some(callback) = &GLOBAL_CALLBACK {
callback()
}