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
1 parent 3ad742f commit 0df82de
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .cirrus.yml
Expand Up @@ -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
Expand Down

0 comments on commit 0df82de

Please sign in to comment.