Skip to content

Commit

Permalink
Remove warning in release build
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Mar 31, 2024
1 parent a97134d commit 3ee4890
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/egui/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3ee4890

Please sign in to comment.