Skip to content

Commit

Permalink
fix: fix missing control paths issue
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Bambooin authored and lotem committed Jul 5, 2022
1 parent 38314b2 commit 87e4c73
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rime/switches.cc
Expand Up @@ -114,6 +114,7 @@ Switches::SwitchOption Switches::Reset(const SwitchOption& current) {
default_state,
};
}
return {};
}

Switches::SwitchOption Switches::FindRadioGroupOption(
Expand Down

0 comments on commit 87e4c73

Please sign in to comment.