mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
044fac8d17
Building any application with gcc 7.1.1 fails with the following error: ``` ~/RIOT % make -C examples/hello-world make: Entering directory 'RIOT/examples/hello-world' Building application "hello-world" for "native" with MCU "native". "make" -C RIOT/boards/native "make" -C RIOT/boards/native/drivers "make" -C RIOT/core "make" -C RIOT/cpu/native RIOT/cpu/native/startup.c: In function ‘startup’: RIOT/cpu/native/startup.c:292:17: error: this statement may fall through [-Werror=implicit-fallthrough=] usage_exit(EXIT_SUCCESS); ^~~~~~~~~~~~~~~~~~~~~~~~ RIOT/cpu/native/startup.c:293:13: note: here case 'i': ^~~~ cc1: all warnings being treated as errors make[2]: *** [RIOT/Makefile.base:81: RIOT/examples/hello-world/bin/native/cpu/startup.o] Error 1 make[1]: *** [RIOT/Makefile.base:20: ALL--RIOT/cpu/native] Error 2 make: *** [RIOT/examples/hello-world/../../Makefile.include:297: all] Error 2 make: Leaving directory 'RIOT/examples/hello-world' ``` ``` % gcc --version gcc (GCC) 7.1.1 20170528 Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ``` fixed by adding a `break` statement after `usage_exit()` |
||
---|---|---|
.. | ||
arm7_common | ||
atmega328p | ||
atmega1281 | ||
atmega2560 | ||
atmega_common | ||
cc26x0 | ||
cc430 | ||
cc2538 | ||
cortexm_common | ||
ezr32wg | ||
k60 | ||
k64f | ||
kinetis_common | ||
kw2xd | ||
lm4f120 | ||
lpc11u34 | ||
lpc1768 | ||
lpc2387 | ||
mips32r2_common | ||
mips_pic32_common | ||
mips_pic32mx | ||
mips_pic32mz | ||
msp430_common | ||
msp430fxyz | ||
native | ||
nrf5x_common | ||
nrf51 | ||
nrf52 | ||
sam0_common | ||
sam3 | ||
samd21 | ||
saml21 | ||
stellaris_common | ||
stm32_common | ||
stm32f0 | ||
stm32f1 | ||
stm32f2 | ||
stm32f3 | ||
stm32f4 | ||
stm32f7 | ||
stm32l0 | ||
stm32l1 | ||
stm32l4 | ||
x86 | ||
doc.txt |