Commit 3d05eefe53540c6abfbdf9cd5498ae9f0e2b44b6
authorAlessio Igor Bogani <abogani@texware.it>
Wed, 14 Apr 2010 18:17:36 +0000 (20:17 +0200)
committerMichel Pollet <buserror@gmail.com>
Wed, 14 Apr 2010 19:47:49 +0000 (20:47 +0100)
Makes gcc happy

Signed-off-by: Alessio Igor Bogani <abogani@texware.it>
Signed-off-by: Michel Pollet <buserror@gmail.com>
examples/board_simduino/simduino.c

index 3152c4828f11d82e4697a8728a3b2f028605c124..01b0c65c7efada74c1bd78bf5d63c12fd63b64c7 100644 (file)
@@ -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) {