summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2022-12-19 15:24:25 +0100
committerElyes Haouas <ehaouas@noos.fr>2022-12-20 14:45:09 +0000
commita36f4f5fc63a245c1d00783928873667f19bd9ba (patch)
tree92a10a0fbc770ee5f0956611aa1aa01c8b3cc8f0 /Documentation
parent17a9849010c522a9dc41eb250102735633bf5e12 (diff)
downloadcoreboot-a36f4f5fc63a245c1d00783928873667f19bd9ba.tar.gz
coreboot-a36f4f5fc63a245c1d00783928873667f19bd9ba.tar.bz2
coreboot-a36f4f5fc63a245c1d00783928873667f19bd9ba.zip
doc/contributing/coding_style: change example to use __fallthrough
While the fall through comment is sufficient for gcc to notice that the fall-through is intentional, clang requires a special attribute which also works for gcc. Update the documentation to use this attribute instead of the comment. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I08dbac8ff1f9e04770a03fb74fabf0d397b50989 Reviewed-on: https://review.coreboot.org/c/coreboot/+/71102 Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-by: Elyes Haouas <ehaouas@noos.fr> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Reviewed-by: Felix Singer <felixsinger@posteo.net>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/contributing/coding_style.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/contributing/coding_style.md b/Documentation/contributing/coding_style.md
index a0604c9d4387..6bf530de2069 100644
--- a/Documentation/contributing/coding_style.md
+++ b/Documentation/contributing/coding_style.md
@@ -66,7 +66,7 @@ case 'm':
case 'K':
case 'k':
mem <<= 10;
- /* fall through */
+ __fallthrough;
default:
break;
}