File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
rp235x-hal-examples/src/bin Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ extern "C" {
106
106
#[ link_section = ".boot_info" ]
107
107
#[ cfg( feature = "binary-info" ) ]
108
108
#[ used]
109
+ #[ allow( unused_unsafe) ] // addr_of! is safe since rust 1.82.0
109
110
pub static PICOTOOL_HEADER : Header = unsafe {
110
111
Header :: new (
111
112
core:: ptr:: addr_of!( __bi_entries_start) ,
Original file line number Diff line number Diff line change @@ -37,12 +37,14 @@ extern "C" {
37
37
/// Tell the Boot ROM about our application
38
38
#[ link_section = ".start_block" ]
39
39
#[ used]
40
+ #[ allow( unused_unsafe) ] // addr_of! is safe since rust 1.82.0
40
41
pub static START_IMAGE_DEF : hal:: block:: ImageDef =
41
42
hal:: block:: ImageDef :: secure_exe ( ) . with_offset ( unsafe { core:: ptr:: addr_of!( start_to_end) } ) ;
42
43
43
44
/// A second Block, and the end of the program in flash
44
45
#[ link_section = ".end_block" ]
45
46
#[ used]
47
+ #[ allow( unused_unsafe) ] // addr_of! is safe since rust 1.82.0
46
48
pub static END_IMAGE_DEF : hal:: block:: Block < 1 > =
47
49
// Put a placeholder item in the block.
48
50
hal:: block:: Block :: new ( [ hal:: block:: item_ignored ( ) ] )
You can’t perform that action at this time.
0 commit comments