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 12, 2024
1 parent 888e942 commit 3eba1e2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion esp-backtrace/src/riscv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub(super) const RA_OFFSET: usize = 4;

/// Registers saved in trap handler
#[doc(hidden)]
#[allow(missing_docs)]
#[allow(missing_docs, dead_code)]
#[derive(Default, Clone, Copy)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[repr(C)]
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
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 3eba1e2

Please sign in to comment.