Skip to content

Commit 87e4c73

Browse files
Bambooinlotem
authored andcommitted
fix: fix missing control paths issue
Fix regression issue in commit: 5e8aca2 ``` 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.
1 parent 38314b2 commit 87e4c73

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/rime/switches.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ Switches::SwitchOption Switches::Reset(const SwitchOption& current) {
114114
default_state,
115115
};
116116
}
117+
return {};
117118
}
118119

119120
Switches::SwitchOption Switches::FindRadioGroupOption(

0 commit comments

Comments
 (0)