From b7a7b6b9231c7043975b071e063f0fa11e653b75 Mon Sep 17 00:00:00 2001 From: Jeong YunWon Date: Mon, 13 Jan 2025 09:13:40 +0900 Subject: [PATCH] remove warnings from wasm build --- vm/src/stdlib/signal.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vm/src/stdlib/signal.rs b/vm/src/stdlib/signal.rs index 73c9d978e..8c5db53d1 100644 --- a/vm/src/stdlib/signal.rs +++ b/vm/src/stdlib/signal.rs @@ -11,10 +11,12 @@ pub(crate) fn make_module(vm: &VirtualMachine) -> PyRef { #[pymodule] pub(crate) mod _signal { + #[cfg(any(unix, windows))] use crate::{ convert::{IntoPyException, TryFromBorrowedObject}, - signal, Py, PyObjectRef, PyResult, VirtualMachine, + Py, }; + use crate::{signal, PyObjectRef, PyResult, VirtualMachine}; use std::sync::atomic::{self, Ordering}; #[cfg(any(unix, windows))]