Skip to content

Commit

Permalink
fix: Fix nightly errors
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioGasquez committed Aug 13, 2024
1 parent 888e942 commit d5707e7
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions esp-lp-hal/src/uart.rs
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ impl embedded_io::Write for LpUart {
match self.flush_tx() {
Ok(_) => break,
Err(nb::Error::WouldBlock) => { /* Wait */ }
#[allow(unreachable_patterns)]
Err(nb::Error::Other(e)) => return Err(e),
}
}
Expand Down
1 change: 1 addition & 0 deletions esp-wifi/src/common_adapter/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ mod log {
// #define ESP_EVENT_DEFINE_BASE(id) esp_event_base_t id = #id
static mut EVT: i8 = 0;
#[no_mangle]
#[allow(unused_unsafe)]
static mut WIFI_EVENT: esp_event_base_t = unsafe { addr_of!(EVT) };

// stuff needed by wpa-supplicant
Expand Down
2 changes: 2 additions & 0 deletions examples/src/bin/debug_assist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ fn main() -> ! {
static mut _stack_end: u32;
}

#[allow(unused_unsafe)]
let stack_top = unsafe { addr_of_mut!(_stack_start) } as *mut _ as u32;
#[allow(unused_unsafe)]
let stack_bottom = unsafe { addr_of_mut!(_stack_end) } as *mut _ as u32;

let size = 4096;
Expand Down
1 change: 1 addition & 0 deletions examples/src/bin/embassy_usb_serial_jtag.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ async fn reader(
string_buffer.extend_from_slice(&rbuf[..len]).unwrap();
signal.signal(heapless::String::from_utf8(string_buffer).unwrap());
}
#[allow(unreachable_patterns)]
Err(e) => esp_println::println!("RX Error: {:?}", e),
}
}
Expand Down
4 changes: 2 additions & 2 deletions xtensa-lx/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ pub fn get_program_counter() -> *const u32 {
unsafe {
asm!("
mov {1}, {2}
call0 1f
call0 2f
.align 4
1:
2:
mov {0}, {2}
mov {2}, {1}
", out(reg) x, out(reg) _, out(reg) _, options(nostack))
Expand Down

0 comments on commit d5707e7

Please sign in to comment.