Skip to content

build: fix warnings from recent gcc versions#27337

Merged
asmorkalov merged 6 commits intoopencv:4.xfrom
fengyuentau:4x/build/riscv/fix_warnings
May 21, 2025
Merged

build: fix warnings from recent gcc versions#27337
asmorkalov merged 6 commits intoopencv:4.xfrom
fengyuentau:4x/build/riscv/fix_warnings

Conversation

@fengyuentau
Copy link
Copy Markdown
Member

This PR addresses the following found warnings:

  • -Wmaybe-uninitialized
  • -Wunused-variable
  • -Wsign-compare

Tested building with GCC 14.2 (RISC-V 64).

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • The PR is proposed to the proper branch
  • There is a reference to the original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

@fengyuentau fengyuentau added this to the 4.12.0 milestone May 20, 2025
@fengyuentau fengyuentau requested a review from asmorkalov May 20, 2025 08:41
@asmorkalov asmorkalov self-assigned this May 20, 2025
@asmorkalov asmorkalov merged commit 166f76d into opencv:4.x May 21, 2025
25 of 28 checks passed
asmorkalov pushed a commit that referenced this pull request May 21, 2025
build: fix more warnings from recent gcc versions after #27337 #27343

More fixings after #27337

### Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

- [x] I agree to contribute to the project under Apache 2 License.
- [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
- [x] The PR is proposed to the proper branch
- [ ] There is a reference to the original bug report and related work
- [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [ ] The feature is well documented and sample code can be built with the project CMake
@asmorkalov asmorkalov mentioned this pull request May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants