Skip to content

Commit 52d8b99

Browse files
authored
Merge pull request #3749 from JohnTitor/fix/allow-dead-code
fix: Allow dead_code lint
2 parents acc7bb1 + a31e006 commit 52d8b99

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

libc-test/build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2409,6 +2409,9 @@ fn test_freebsd(target: &str) {
24092409
// FIXME: Removed in FreeBSD 15:
24102410
"LOCAL_CONNWAIT" => true,
24112411

2412+
// FIXME: The values has been changed in FreeBSD 15:
2413+
"CLOCK_BOOTTIME" if Some(15) <= freebsd_ver => true,
2414+
24122415
_ => false,
24132416
}
24142417
});

src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
redundant_semicolons,
1313
unused_macros,
1414
unused_macro_rules,
15+
// FIXME: temporarily allow dead_code to fix CI:
16+
// - https://github.com/rust-lang/libc/issues/3740
17+
// - https://github.com/rust-lang/rust/pull/126456
18+
dead_code,
1519
)]
1620
#![cfg_attr(libc_deny_warnings, deny(warnings))]
1721
// Attributes needed when building as part of the standard library

0 commit comments

Comments
 (0)