1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu
Cenk Gündoğan 044fac8d17 native: add break to satisfy compiler gcc-7.1.1
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()`
2017-05-30 13:56:17 +02:00
..
arm7_common cpu: cleanup unused/umimplemented isr stack code 2017-05-12 18:07:08 +02:00
atmega328p cpu: cleanup unused/umimplemented isr stack code 2017-05-12 18:07:08 +02:00
atmega1281 cpu: cleanup unused/umimplemented isr stack code 2017-05-12 18:07:08 +02:00
atmega2560 cpu: cleanup unused/umimplemented isr stack code 2017-05-12 18:07:08 +02:00
atmega_common cleanup: apply headerguard script output 2017-05-24 17:54:02 +02:00
cc26x0 cleanup: apply headerguard script output 2017-05-24 17:54:02 +02:00
cc430 cleanup: apply headerguard script output 2017-05-24 17:54:02 +02:00
cc2538 cleanup: apply headerguard script output 2017-05-24 17:54:02 +02:00
cortexm_common cleanup: apply headerguard script output 2017-05-24 17:54:02 +02:00
ezr32wg cleanup: apply headerguard script output 2017-05-24 17:54:02 +02:00
k60 kinetis: Unify default ISR definitions 2017-05-02 10:52:43 +02:00
k64f kinetis: Unify default ISR definitions 2017-05-02 10:52:43 +02:00
kinetis_common Merge pull request #6993 from gebart/pr/kinetis-isr 2017-05-30 08:48:50 +02:00
kw2xd kinetis: Unify default ISR definitions 2017-05-02 10:52:43 +02:00
lm4f120 Merge pull request #6860 from gebart/pr/stellaris-makefile 2017-04-05 14:02:10 +02:00
lpc11u34 Makefiles: move to new directory /makefiles 2017-04-04 15:11:54 +02:00
lpc1768 Makefiles: move to new directory /makefiles 2017-04-04 15:11:54 +02:00
lpc2387 cleanup: apply headerguard script output 2017-05-24 17:54:02 +02:00
mips32r2_common cleanup: apply headerguard script output 2017-05-24 17:54:02 +02:00
mips_pic32_common some (ptr == 0) -> (ptr == NULL) fixes (found by coccinelle) 2017-04-20 23:31:32 +02:00
mips_pic32mx cleanup: apply headerguard script output 2017-05-24 17:54:02 +02:00
mips_pic32mz cleanup: apply headerguard script output 2017-05-24 17:54:02 +02:00
msp430_common cleanup: apply headerguard script output 2017-05-24 17:54:02 +02:00
msp430fxyz cleanup: apply headerguard script output 2017-05-24 17:54:02 +02:00
native native: add break to satisfy compiler gcc-7.1.1 2017-05-30 13:56:17 +02:00
nrf5x_common driver/nrfmin: add get MAX_PACKET_SIZE option 2017-05-05 13:59:18 +02:00
nrf51 cleanup: apply headerguard script output 2017-05-24 17:54:02 +02:00
nrf52 cleanup: apply headerguard script output 2017-05-24 17:54:02 +02:00
sam0_common cleanup: apply headerguard script output 2017-05-24 17:54:02 +02:00
sam3 Makefiles: move to new directory /makefiles 2017-04-04 15:11:54 +02:00
samd21 cleanup: apply headerguard script output 2017-05-24 17:54:02 +02:00
saml21 Merge pull request #7027 from dylad/saml21_adc 2017-05-12 23:33:47 +02:00
stellaris_common cpu/stellaris: Rename Makefile -> Makefile.include 2017-04-04 19:57:12 +02:00
stm32_common Merge pull request #7051 from OTAkeys/pr/stm32f7discovery 2017-05-17 19:24:03 +02:00
stm32f0 cleanup: apply headerguard script output 2017-05-24 17:54:02 +02:00
stm32f1 cpu/stm32f1: fix build issue with iotlab-m3 (arm-none-eabi-gcc 4.9.3) 2017-05-03 15:01:09 +02:00
stm32f2 Makefiles: move to new directory /makefiles 2017-04-04 15:11:54 +02:00
stm32f3 cleanup: apply headerguard script output 2017-05-24 17:54:02 +02:00
stm32f4 cleanup: apply headerguard script output 2017-05-24 17:54:02 +02:00
stm32f7 cleanup: apply headerguard script output 2017-05-24 17:54:02 +02:00
stm32l0 cleanup: apply headerguard script output 2017-05-24 17:54:02 +02:00
stm32l1 cleanup: apply headerguard script output 2017-05-24 17:54:02 +02:00
stm32l4 cleanup: apply headerguard script output 2017-05-24 17:54:02 +02:00
x86 cleanup: apply headerguard script output 2017-05-24 17:54:02 +02:00
doc.txt cpu: doc typos 2017-01-20 13:36:26 +01:00