From 87e4c73f50e59472817facab3b4fb67e37e81cde Mon Sep 17 00:00:00 2001 From: Bambooin Date: Sun, 3 Jul 2022 09:55:55 +0800 Subject: [PATCH] fix: fix missing control paths issue Fix regression issue in commit: 5e8aca2756eed71b65ec821c1bf18d10d10fc25b ``` trime/app/src/main/jni/librime/src/rime/switches.cc:117:1: error: non-void function does not return a value in all control paths [-Werror,-Wreturn-type] } ^ 1 error generated. ``` We can add more compiler option in CI to avoid issue like this. --- src/rime/switches.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rime/switches.cc b/src/rime/switches.cc index d7406b8842..e6ab007951 100644 --- a/src/rime/switches.cc +++ b/src/rime/switches.cc @@ -114,6 +114,7 @@ Switches::SwitchOption Switches::Reset(const SwitchOption& current) { default_state, }; } + return {}; } Switches::SwitchOption Switches::FindRadioGroupOption(