From 3d05eefe53540c6abfbdf9cd5498ae9f0e2b44b6 Mon Sep 17 00:00:00 2001 From: Alessio Igor Bogani Date: Wed, 14 Apr 2010 20:17:36 +0200 Subject: [PATCH] misc: Warning fix Makes gcc happy Signed-off-by: Alessio Igor Bogani Signed-off-by: Michel Pollet --- examples/board_simduino/simduino.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.5