We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83c29f5 commit 39637acCopy full SHA for 39637ac
src/lib.rs
@@ -1671,18 +1671,12 @@ impl Build {
1671
// CFLAGS/CXXFLAGS, since those variables presumably already contain
1672
// the desired set of warnings flags.
1673
1674
- if self
1675
- .warnings
1676
- .unwrap_or(if self.has_flags() { false } else { true })
1677
- {
+ if self.warnings.unwrap_or(!self.has_flags()) {
1678
let wflags = cmd.family.warnings_flags().into();
1679
cmd.push_cc_arg(wflags);
1680
}
1681
1682
1683
- .extra_warnings
1684
1685
+ if self.extra_warnings.unwrap_or(!self.has_flags()) {
1686
if let Some(wflags) = cmd.family.extra_warnings_flags() {
1687
cmd.push_cc_arg(wflags.into());
1688
0 commit comments