From 005c414e5f2a0ace3756da767d3920ac98cb5c76 Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Sat, 24 Jul 2021 15:39:01 +0100 Subject: Document intentional fallthroughs + fix harmless unintended ones Change-Id: I1ca5b1027ec30cbf61093bab35b980196ed14e6b --- apps/plugins/calculator.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps/plugins/calculator.c') diff --git a/apps/plugins/calculator.c b/apps/plugins/calculator.c index bd09330529..5bab15d7ed 100644 --- a/apps/plugins/calculator.c +++ b/apps/plugins/calculator.c @@ -755,6 +755,7 @@ double strtod(const char *nptr, char **endptr) case '.': case '\'': end=1; + /* fallthrough */ default: nptr++; } @@ -1687,6 +1688,7 @@ static void typingProcess(void){ clearInput(); *typingbufPointer = '0'; typingbufPointer++; + /* Fallthrough */ case cal_typing: calStatus = cal_dotted; *typingbufPointer = '.'; -- cgit v1.2.3