Skip to content

Commit

Permalink
sys: disable function ptr lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cmeissl authored and ids1024 committed Dec 17, 2024
1 parent 7f4fed8 commit 6049eab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wayland-sys/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,9 @@ pub mod signal {
// Safety: the signal pointer is valid
unsafe {
list_for_each!(l, &mut (*signal).listener_list as *mut wl_list, wl_listener, link, {
// nightly only lint
#[allow(unknown_lints)]
#[allow(unpredictable_function_pointer_comparisons)]
if (*l).notify == notify {
return l;
}
Expand Down

0 comments on commit 6049eab

Please sign in to comment.