Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/uu/stty/src/stty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,11 @@ fn apply_saved_state(termios: &mut Termios, state: &(CFlags, CCFlags)) {
}

fn apply_special_setting(
_termios: &mut Termios,
#[cfg_attr(
not(any(target_os = "linux", target_os = "android")),
expect(unused_variables)
)]
termios: &mut Termios,
setting: &SpecialSetting,
fd: impl AsFd,
) -> io::Result<()> {
Expand All @@ -910,7 +914,7 @@ fn apply_special_setting(
// nix only defines Termios's `line_discipline` field on these platforms
#[cfg(any(target_os = "linux", target_os = "android"))]
{
_termios.line_discipline = *n;
termios.line_discipline = *n;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
}
}
let _ = termios;

This currentlly 2 targets only, but it wil be verbose soon. I don't want to have 2 large cfg blocks.

}
}
Expand Down
Loading