From: asterix Date: Mon, 27 Sep 2010 12:04:52 +0000 (+0000) Subject: Silent warning when we compile without debug. X-Git-Tag: 2.6.0~89 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=8016ea0a758a96d75ee7d64c773990b38d94fa8e;hp=b0b4175fef274ef3d9e3d9fae6144f5c780b04d9;p=bertos.git Silent warning when we compile without debug. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4312 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cpu/cortex-m3/drv/flash_lm3s.c b/bertos/cpu/cortex-m3/drv/flash_lm3s.c index 281c2704..7ca0a7cf 100644 --- a/bertos/cpu/cortex-m3/drv/flash_lm3s.c +++ b/bertos/cpu/cortex-m3/drv/flash_lm3s.c @@ -117,6 +117,7 @@ static size_t lm3s_flash_readDirect(struct KBlock *blk, block_idx_t idx, void *b static size_t lm3s_flash_writeDirect(struct KBlock *blk, block_idx_t idx, const void *_buf, size_t offset, size_t size) { + (void)offset; ASSERT(offset == 0); ASSERT(size == blk->blk_size);