linuxkms: ignore warning when no renderer are active

This commit is contained in:
Olivier Goffart 2024-06-20 12:00:07 +02:00
parent a4c0cc9f09
commit 845f40da9c
2 changed files with 2 additions and 0 deletions

View file

@ -4,6 +4,7 @@
use i_slint_core::api::PhysicalSize;
use i_slint_core::platform::PlatformError;
#[allow(unused)]
pub trait Presenter {
fn is_ready_to_present(&self) -> bool;
fn register_page_flip_handler(

View file

@ -38,6 +38,7 @@ mod renderer {
pub fn try_skia_then_femtovg_then_software(
_device_opener: &crate::DeviceOpener,
) -> Result<Box<dyn FullscreenRenderer>, PlatformError> {
#[allow(unused)]
type FactoryFn =
fn(&crate::DeviceOpener) -> Result<Box<(dyn FullscreenRenderer)>, PlatformError>;