Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warning with rust 1.82.0 #863

Merged
merged 1 commit into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions rp-binary-info/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ extern "C" {
#[link_section = ".boot_info"]
#[cfg(feature = "binary-info")]
#[used]
#[allow(unused_unsafe)] // addr_of! is safe since rust 1.82.0
pub static PICOTOOL_HEADER: Header = unsafe {
Header::new(
core::ptr::addr_of!(__bi_entries_start),
Expand Down
2 changes: 2 additions & 0 deletions rp235x-hal-examples/src/bin/block_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,14 @@ extern "C" {
/// Tell the Boot ROM about our application
#[link_section = ".start_block"]
#[used]
#[allow(unused_unsafe)] // addr_of! is safe since rust 1.82.0
pub static START_IMAGE_DEF: hal::block::ImageDef =
hal::block::ImageDef::secure_exe().with_offset(unsafe { core::ptr::addr_of!(start_to_end) });

/// A second Block, and the end of the program in flash
#[link_section = ".end_block"]
#[used]
#[allow(unused_unsafe)] // addr_of! is safe since rust 1.82.0
pub static END_IMAGE_DEF: hal::block::Block<1> =
// Put a placeholder item in the block.
hal::block::Block::new([hal::block::item_ignored()])
Expand Down