diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2021-07-24 15:39:01 +0100 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2021-08-04 18:59:46 +0000 |
commit | 005c414e5f2a0ace3756da767d3920ac98cb5c76 (patch) | |
tree | 73b17f1e733ffb64a475657eefa21b17ac1ff7b9 /apps/plugins/calculator.c | |
parent | ef41cc6623226f3ce7630211ef88640a48fb8e59 (diff) | |
download | rockbox-005c414e5f2a0ace3756da767d3920ac98cb5c76.tar.gz rockbox-005c414e5f2a0ace3756da767d3920ac98cb5c76.zip |
Document intentional fallthroughs + fix harmless unintended ones
Change-Id: I1ca5b1027ec30cbf61093bab35b980196ed14e6b
Diffstat (limited to 'apps/plugins/calculator.c')
-rw-r--r-- | apps/plugins/calculator.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) | |||
755 | case '.': | 755 | case '.': |
756 | case '\'': | 756 | case '\'': |
757 | end=1; | 757 | end=1; |
758 | /* fallthrough */ | ||
758 | default: | 759 | default: |
759 | nptr++; | 760 | nptr++; |
760 | } | 761 | } |
@@ -1687,6 +1688,7 @@ static void typingProcess(void){ | |||
1687 | clearInput(); | 1688 | clearInput(); |
1688 | *typingbufPointer = '0'; | 1689 | *typingbufPointer = '0'; |
1689 | typingbufPointer++; | 1690 | typingbufPointer++; |
1691 | /* Fallthrough */ | ||
1690 | case cal_typing: | 1692 | case cal_typing: |
1691 | calStatus = cal_dotted; | 1693 | calStatus = cal_dotted; |
1692 | *typingbufPointer = '.'; | 1694 | *typingbufPointer = '.'; |