diff --git a/artiq/firmware/libboard_artiq/ad9154.rs b/artiq/firmware/libboard_artiq/ad9154.rs index 0f38ee321..21149c8b2 100644 --- a/artiq/firmware/libboard_artiq/ad9154.rs +++ b/artiq/firmware/libboard_artiq/ad9154.rs @@ -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) */ diff --git a/artiq/firmware/libdyld/lib.rs b/artiq/firmware/libdyld/lib.rs index c5d028226..1eeff2bf4 100644 --- a/artiq/firmware/libdyld/lib.rs +++ b/artiq/firmware/libdyld/lib.rs @@ -198,6 +198,8 @@ impl<'a> Library<'a> { pub fn load(data: &[u8], image: &'a mut [u8], resolve: &Fn(&[u8]) -> Option) -> Result, Error<'a>> { + #![allow(unused_assignments)] + let ehdr = read_unaligned::(data, 0) .map_err(|()| "cannot read ELF header")?;