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 a293a87 commit 790ecd9Copy full SHA for 790ecd9
psx/src/sys/tty.rs
@@ -107,7 +107,9 @@ macro_rules! println {
107
{
108
use $crate::sys::tty::TTY;
109
<TTY as core::fmt::Write>::write_fmt(&mut TTY, format_args!($($args)*)).ok();
110
- // SAFETY: The string is null-terminated.
+ // SAFETY: The string is null-terminated. The attribute avoids warnings for nested
111
+ // unsafe blocks
112
+ #[allow(unused_unsafe)]
113
unsafe {
114
$crate::sys::kernel::psx_printf(b"\n\0".as_ptr() as *const i8);
115
}
0 commit comments