File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ pub static DIR_ITEM: menu::Item<Ctx> = menu::Item {
1414 help : Some ( "Dir the root directory on block device 0" ) ,
1515} ;
1616
17+ #[ cfg( target_os = "none" ) ]
1718pub static LOAD_ITEM : menu:: Item < Ctx > = menu:: Item {
1819 item_type : menu:: ItemType :: Callback {
1920 function : load,
Original file line number Diff line number Diff line change @@ -87,8 +87,10 @@ pub struct Api {
8787 pub print : extern "C" fn ( data : * const u8 , len : usize ) ,
8888}
8989
90+ #[ allow( unused) ]
9091static CALLBACK_TABLE : Api = Api { print : print_fn } ;
9192
93+ #[ allow( unused) ]
9294extern "C" fn print_fn ( data : * const u8 , len : usize ) {
9395 let slice = unsafe { core:: slice:: from_raw_parts ( data, len) } ;
9496 if let Ok ( s) = core:: str:: from_utf8 ( slice) {
You can’t perform that action at this time.
0 commit comments