Skip to content

Commit b31af9e

Browse files
authored
Merge pull request #3752 from JohnTitor/fix/allow-dead-code-0.2
fix: Allow dead_code lint
2 parents ca70695 + 0b2cf17 commit b31af9e

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
@@ -2482,6 +2482,9 @@ fn test_freebsd(target: &str) {
24822482
// FIXME: Removed in FreeBSD 15:
24832483
"LOCAL_CONNWAIT" if freebsd_ver >= Some(15) => true,
24842484

2485+
// FIXME: The values has been changed in FreeBSD 15:
2486+
"CLOCK_BOOTTIME" if Some(15) <= freebsd_ver => true,
2487+
24852488
_ => false,
24862489
}
24872490
});

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)