Skip to content

Fix non-void function does not return a value#1039

Merged
ksqsf merged 1 commit intorime:masterfrom
Bambooin:master
Jul 10, 2025
Merged

Fix non-void function does not return a value#1039
ksqsf merged 1 commit intorime:masterfrom
Bambooin:master

Conversation

@Bambooin
Copy link
Contributor

Pull request

Issue tracker

Fixes will automatically close the related issue

Fix build error with Trime.

.../github/trime/app/src/main/jni/librime/src/rime/gear/script_translator.cc:269:1: error: non-void function does not return a value [-Werror,-Wreturn-type]
    269 | }
        | ^
  1 error generated.

Feature

Describe feature of pull request

Unit test

  • Done

Manual test

  • Done

Code Review

  1. Unit and manual test pass
  2. GitHub Action CI pass
  3. At least one contributor reviews and votes
  4. Can be merged clean without conflicts
  5. PR will be merged by rebase upstream base

Additional Info

/.../github/trime/app/src/main/jni/librime/src/rime/gear/script_translator.cc:269:1: error: non-void function does not return a value [-Werror,-Wreturn-type]
    269 | }
        | ^
  1 error generated.
@Bambooin
Copy link
Contributor Author

Similar issue with #560, we should add strict flag in the CI to avoid this issue at compile phase.

@ksqsf ksqsf merged commit 3c1d6e7 into rime:master Jul 10, 2025
10 checks passed
WindyValley pushed a commit to WindyValley/librime that referenced this pull request Nov 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants