Skip to content

Commit 615224f

Browse files
committed
Ignore false-positive warning
1 parent e5b7775 commit 615224f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libc-test/tests/cmsg.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ mod t {
2929
}
3030

3131
#[test]
32+
#[allow(unused_assignments)] // false-positive: https://github.com/rust-lang/rust/issues/147648
3233
fn test_cmsg_firsthdr() {
3334
let mut mhdr: msghdr = unsafe { mem::zeroed() };
3435
mhdr.msg_control = 0xdeadbeef as *mut c_void;

0 commit comments

Comments
 (0)