Skip to content

Commit 3a52d29

Browse files
committed
feat(sbi): deny warnings
1 parent eec09b1 commit 3a52d29

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rustsbi-qemu/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ readme = "README.md"
77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

99
[dependencies]
10-
rustsbi = { path = "../../rustsbi" }
10+
rustsbi = { git = "https://github.com/YdrMaster/rustsbi.git", rev = "118ca4c" }
1111
riscv = "0.8"
1212
spin = "0.9"
1313
r0 = "1"

rustsbi-qemu/src/clint.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ pub(crate) fn get() -> &'static Clint {
2222
}
2323

2424
impl Clint {
25+
#[allow(unused)]
2526
#[inline]
2627
pub fn get_mtime(&self) -> u64 {
2728
unsafe { ((self.base as *mut u8).add(0xbff8) as *mut u64).read_volatile() }

rustsbi-qemu/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#![no_std]
22
#![no_main]
33
#![feature(naked_functions, asm_sym, asm_const)]
4+
#![deny(warnings)]
45

56
#[macro_use] // for print
67
extern crate rustsbi;

0 commit comments

Comments
 (0)