]> git.baikalelectronics.ru Git - arm-tf.git/commit
feat(libc): add support for fallthrough statement
authorAndre Przywara <andre.przywara@arm.com>
Tue, 21 Feb 2023 12:05:29 +0000 (12:05 +0000)
committerAndre Przywara <andre.przywara@arm.com>
Mon, 20 Mar 2023 13:37:36 +0000 (13:37 +0000)
commit023f1bed1dde23564e3b66a99c4a45b09e38992b
tree1d18a8d8c2e47384e3ce56a048b7ad01838b14ea
parent6437a09a2db5774438fb1a95c508ed6b0a9f0ef2
feat(libc): add support for fallthrough statement

Modern C compilers warn about unannotated switch/case fallthrough code,
and require either a comment with some magic words, or an explicit
compiler attribute.
Since some TF-A static analysis CI check suggests having a "fallthrough;"
statement instead of a comment, introduce a macro that implements that
statement, and emits the proper compiler attribute.

Change-Id: Ib34e615fb48d0f4a340aabfad4472e08d5c70248
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
include/lib/libc/cdefs.h