From 3ee4890b9433e8038de4cb498a3a9d09eb0d0c4b Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Sun, 31 Mar 2024 20:41:44 +0200 Subject: [PATCH] Remove warning in release build --- crates/egui/src/context.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/egui/src/context.rs b/crates/egui/src/context.rs index aa9849523be..1ee0b364136 100644 --- a/crates/egui/src/context.rs +++ b/crates/egui/src/context.rs @@ -1213,6 +1213,11 @@ impl Context { ctx.viewport().widgets_this_frame.set_info(id, make_info()); } }); + + #[cfg(not(debug_assertions))] + { + _ = (self, id, make_info); + } } /// Get a full-screen painter for a new or existing layer