Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(linux): fix warnings from
unexpected_cfgs
lint on nightly (#1280)
Recently nightly `rustc` enabled `unexpected_cfgs` lint by default. Since this project uses non-standard cfg names, they started to cause warnings like below on Linux: ``` warning: unexpected `cfg` condition name: `gtk` --> src/lib.rs:1029:17 | 1029 | #[cfg(not(gtk))] | ^^^ | = help: consider using a Cargo feature instead = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [lints.rust] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(gtk)'] } = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(gtk)");` to the top of the `build.rs` = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration ``` Ref: rust-lang/rust#82450 Signed-off-by: rhysd <lin90162@yahoo.co.jp>
- Loading branch information