Commit 19db887a6c57ad42b17b24256a5b2cf9125e898b
authorThomas Martens <thomas@defaultschuldiger.de>
Mon, 14 Aug 2017 20:52:21 +0000 (22:52 +0200)
committerMichel Pollet <github.com@pollet.net>
Tue, 15 Aug 2017 11:12:14 +0000 (12:12 +0100)
treef51020c769824a1bdc52f5447874a24fd2434fa5
parentd4228955c5d48d4dd43026a8c5a02b08f4e50a27
Message:
Added a define "FALLTHROUGH" to suppress 'this statement may fallthrough' messages
Since avr-gcc version 7 the flag -Wimplicit-fallthrough is set, so that
a missing "break;" inside a switch-case statement will throw an error in
the compiling process.
The missing breaks are replaced by the FALLTHROUGH define and no errors
occours.
FALLTHROUGH is simply an "__attribute__((fallthrough));" - if it is
supported by the compiler.
4 files changed:
examples/board_timer_64led/timer_64led.c
simavr/sim/avr_adc.c
simavr/sim/sim_avr.h
simavr/sim/sim_core.c