diff --git a/src/uu/stty/src/stty.rs b/src/uu/stty/src/stty.rs index 02227a5a222..3f2b827075b 100644 --- a/src/uu/stty/src/stty.rs +++ b/src/uu/stty/src/stty.rs @@ -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<()> { @@ -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; } } }