Skip to content

Commit 0df82de

Browse files
committed
Suppress deprecation warnings on Dragonfly
libc::stat is deprecated on DragonflyBSD in libc. But there isn't any alternative yet, so Nix must simply suppress the warnings. It's used in too many places to suppress each one individually, so just suppress all deprecation warnings globally until it's properly fixed. rust-lang/libc#2522
1 parent 3ad742f commit 0df82de

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.cirrus.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,10 @@ task:
245245
- name: DragonFly BSD x86_64
246246
env:
247247
TARGET: x86_64-unknown-dragonfly
248+
# Temporarily allow deprecation on DragonflyBSD until an alternative is
249+
# available.
250+
#https://github.com/rust-lang/libc/pull/2522
251+
RUSTFLAGS: -D warnings -A deprecated
248252
- name: OpenBSD x86_64
249253
env:
250254
TARGET: x86_64-unknown-openbsd

0 commit comments

Comments
 (0)