forked from M-Labs/artiq
1
0
Fork 0

firmware: fix warnings.

This commit is contained in:
whitequark 2018-01-17 00:46:51 +00:00
parent f317d1a2c6
commit 1e896d4ba8
2 changed files with 4 additions and 0 deletions

View File

@ -392,6 +392,7 @@ fn dac_setup(linerate: u64) -> Result<(), &'static str> {
Ok(())
}
#[allow(dead_code)]
fn dac_status() {
info!("SERDES_PLL_LOCK: {}",
(read(ad9154_reg::PLL_STATUS) & ad9154_reg::SERDES_PLL_LOCK_RB));
@ -487,6 +488,7 @@ fn dac_monitor() {
write(ad9154_reg::IRQ_STATUS3, 0x00);
}
#[allow(dead_code)]
fn dac_prbs(dacno: u8, p: u8, t: u32) {
/* follow phy prbs testing (p58 of ad9154 datasheet) */

View File

@ -198,6 +198,8 @@ impl<'a> Library<'a> {
pub fn load(data: &[u8], image: &'a mut [u8], resolve: &Fn(&[u8]) -> Option<Elf32_Word>)
-> Result<Library<'a>, Error<'a>> {
#![allow(unused_assignments)]
let ehdr = read_unaligned::<Elf32_Ehdr>(data, 0)
.map_err(|()| "cannot read ELF header")?;