From: Alessio Igor Bogani Date: Wed, 14 Apr 2010 18:17:36 +0000 (+0200) Subject: misc: Warning fix X-Git-Tag: v1.0a3~1 X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=3d05eefe53540c6abfbdf9cd5498ae9f0e2b44b6;p=sx%2Fsimavr.git misc: Warning fix Makes gcc happy Signed-off-by: Alessio Igor Bogani Signed-off-by: Michel Pollet --- diff --git a/examples/board_simduino/simduino.c b/examples/board_simduino/simduino.c index 3152c48..01b0c65 100644 --- a/examples/board_simduino/simduino.c +++ b/examples/board_simduino/simduino.c @@ -177,7 +177,7 @@ int main(int argc, char *argv[]) perror(path); exit(1); } - ftruncate(fd, avr->flashend + 1); + (void)ftruncate(fd, avr->flashend + 1); uint8_t * mm = (uint8_t*)mmap(NULL, avr->flashend + 1 /* 32k is multiple of 4096 */, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); if (!mm) {