From ad94eeb13678257d1c8ebdb3b2ab4bdc979a4273 Mon Sep 17 00:00:00 2001 From: TheRealDust <73678906+TheRealDust@users.noreply.github.com> Date: Tue, 2 Jul 2024 11:22:28 +1000 Subject: [PATCH] Fixed Dead Code Warning Disabled dead code warning. --- src/sdl2/video.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sdl2/video.rs b/src/sdl2/video.rs index b539085418..c758a61425 100644 --- a/src/sdl2/video.rs +++ b/src/sdl2/video.rs @@ -547,6 +547,7 @@ impl GLContext { pub struct WindowContext { subsystem: VideoSubsystem, raw: *mut sys::SDL_Window, + #[allow(dead_code)] pub(crate) metal_view: sys::SDL_MetalView, }