From ec675eefb4f8970e122ab9952c66e720ea543e6a Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 5 Jan 2021 04:45:23 +0800 Subject: [PATCH] cleanup warnings --- services/graphics-server/src/api.rs | 2 ++ services/graphics-server/src/backend/betrusted.rs | 2 +- services/graphics-server/src/main.rs | 2 +- services/graphics-server/src/op.rs | 3 --- services/xous-names/src/api.rs | 2 ++ services/xous-names/src/main.rs | 1 - 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/services/graphics-server/src/api.rs b/services/graphics-server/src/api.rs index 09f983d7a..b3a16c205 100644 --- a/services/graphics-server/src/api.rs +++ b/services/graphics-server/src/api.rs @@ -1,3 +1,5 @@ +#![allow(dead_code)] + use crate::op::{HEIGHT, WIDTH}; use blitstr::{ClipRect, Cursor, GlyphStyle}; use core::cmp::{max, min}; diff --git a/services/graphics-server/src/backend/betrusted.rs b/services/graphics-server/src/backend/betrusted.rs index 5d97dada5..d33fa9590 100644 --- a/services/graphics-server/src/backend/betrusted.rs +++ b/services/graphics-server/src/backend/betrusted.rs @@ -2,7 +2,7 @@ use utralib::generated::*; use xous::MemoryRange; const FB_WIDTH_WORDS: usize = 11; -const FB_WIDTH_PIXELS: usize = 336; +// const FB_WIDTH_PIXELS: usize = 336; const FB_LINES: usize = 536; const FB_SIZE: usize = FB_WIDTH_WORDS * FB_LINES; // 44 bytes by 536 lines const CONFIG_CLOCK_FREQUENCY: u32 = 100_000_000; diff --git a/services/graphics-server/src/main.rs b/services/graphics-server/src/main.rs index 04f627e59..d90238e0c 100644 --- a/services/graphics-server/src/main.rs +++ b/services/graphics-server/src/main.rs @@ -38,7 +38,7 @@ fn xmain() -> ! { display.redraw(); let sid = xous::create_server_with_address(b"graphics-server ").unwrap(); - // info!("GFX: Server listening on address {:?}", sid); + info!("GFX: Server listening on address {:?}", sid); // ::debug_here::debug_here!(); loop { let msg = xous::receive_message(sid).unwrap(); diff --git a/services/graphics-server/src/op.rs b/services/graphics-server/src/op.rs index c595f9faf..65faf68c2 100644 --- a/services/graphics-server/src/op.rs +++ b/services/graphics-server/src/op.rs @@ -12,9 +12,6 @@ pub const HEIGHT: i16 = 536; /// For passing frame buffer references pub type LcdFB = [u32; LCD_FRAME_BUF_SIZE]; -/// For storing a full-row wide blit pattern -pub type BlitRow = [u32; LCD_WORDS_PER_LINE]; - fn put_pixel(fb: &mut LcdFB, x: i16, y: i16, color: PixelColor) { let mut clip_y: usize = y as usize; if clip_y >= LCD_LINES { diff --git a/services/xous-names/src/api.rs b/services/xous-names/src/api.rs index 79024ff68..54ea777f7 100644 --- a/services/xous-names/src/api.rs +++ b/services/xous-names/src/api.rs @@ -1,3 +1,5 @@ +#![allow(dead_code)] + use xous::{SID, CID}; use hash32_derive::*; diff --git a/services/xous-names/src/main.rs b/services/xous-names/src/main.rs index 16321a1d8..2714e5b8c 100644 --- a/services/xous-names/src/main.rs +++ b/services/xous-names/src/main.rs @@ -1,7 +1,6 @@ #![cfg_attr(target_os = "none", no_std)] #![cfg_attr(target_os = "none", no_main)] -#[macro_use] extern crate hash32_derive; mod api;