diff --git a/desktop/src/lib.rs b/desktop/src/lib.rs index 0666d93d65..e228586f63 100644 --- a/desktop/src/lib.rs +++ b/desktop/src/lib.rs @@ -169,6 +169,5 @@ pub fn start() -> ExitCode { _ => {} } - #[cfg(not(target_os = "windows"))] ExitCode::SUCCESS } diff --git a/desktop/ui/src/frames/import.rs b/desktop/ui/src/frames/import.rs index 856b87feb8..98a5a79584 100644 --- a/desktop/ui/src/frames/import.rs +++ b/desktop/ui/src/frames/import.rs @@ -15,9 +15,11 @@ pub(crate) enum TextureImportError { InvalidHandle(String), #[error("Unsupported texture format: {format:?}")] UnsupportedFormat { format: cef_color_type_t }, + #[cfg(not(target_os = "macos"))] #[error("Hardware acceleration not available: {reason}")] HardwareUnavailable { reason: String }, #[error("Vulkan operation failed: {operation}")] + #[cfg(target_os = "linux")] VulkanError { operation: String }, #[error("Platform-specific error: {message}")] PlatformError { message: String }, diff --git a/desktop/ui/src/remote/spawn.rs b/desktop/ui/src/remote/spawn.rs index 7588dd41ab..12a5ad0c20 100644 --- a/desktop/ui/src/remote/spawn.rs +++ b/desktop/ui/src/remote/spawn.rs @@ -23,7 +23,7 @@ pub(crate) struct HostHandle { child: Arc>, shutting_down: Arc, died_reported: Arc, - #[cfg_attr(not(feature = "accelerated_paint"), expect(dead_code))] + #[cfg_attr(any(not(feature = "accelerated_paint"), target_os = "windows"), expect(dead_code))] host_acceleration: bool, #[cfg(target_os = "windows")] _job: Option,