Commit a91c626f authored by Fabio Utzig's avatar Fabio Utzig Committed by David Brown
Browse files

Mark non-used functions in overwrite only mode

Signed-off-by: default avatarFabio Utzig <utzig@apache.org>
parent eedcc450
Loading
Loading
Loading
Loading
+2
Changes for sim/src/lib.rs: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -667,11 +667,13 @@ impl Images {
        fails > 0
    }

    #[cfg(not(feature = "overwrite-only"))]
    fn trailer_sz(&self) -> usize {
        c::boot_trailer_sz(self.align) as usize
    }

    // FIXME: could get status sz from bootloader
    #[cfg(not(feature = "overwrite-only"))]
    fn status_sz(&self) -> usize {
        self.trailer_sz() - (16 + 24)
    }