Skip to content

Commit

Permalink
Suppress deprecation warnings on Dragonfly
Browse files Browse the repository at this point in the history
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
  • Loading branch information
asomers committed Nov 16, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 3ad742f commit 0df82de
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
@@ -245,6 +245,10 @@ task:
- name: DragonFly BSD x86_64
env:
TARGET: x86_64-unknown-dragonfly
# Temporarily allow deprecation on DragonflyBSD until an alternative is
# available.
#https://github.com/rust-lang/libc/pull/2522
RUSTFLAGS: -D warnings -A deprecated
- name: OpenBSD x86_64
env:
TARGET: x86_64-unknown-openbsd

0 comments on commit 0df82de

Please sign in to comment.