X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Favr%2Fdrv%2Fflash_avr.c;h=c587c5270057387581b7283284628b93c93daf4f;hb=dd6db266344e7bf6d58673d7ce5b5b3a9ed9e64d;hp=ad350b299a9d52ff93bcb76b971ba614e7bc8619;hpb=2b1ef1c4e079e86db8512cec4dac031a0d19cb2f;p=bertos.git diff --git a/bertos/cpu/avr/drv/flash_avr.c b/bertos/cpu/avr/drv/flash_avr.c index ad350b29..c587c527 100644 --- a/bertos/cpu/avr/drv/flash_avr.c +++ b/bertos/cpu/avr/drv/flash_avr.c @@ -61,8 +61,6 @@ #include -#if 1 - /** * Definition of type for avr flash module. @@ -149,11 +147,10 @@ static void flash_avr_flush(void) * Write current buffered page in flash memory (if modified). * This function erase flash memory page before writing. */ -static int flash_avr_kfileFlush(struct KFile * fd) +static int flash_avr_kfileFlush(UNUSED_ARG(struct KFile *,fd)) { KFILEFLASHAVR(fd); - (void)fd; flash_avr_flush(); return 0; } @@ -300,5 +297,5 @@ void flash_avr_init(struct KFile *fd) flash_avr_open(fd); } -#endif +