Skip to content

Fixed OpenJPEG 2000 compiler warning for some GCC versions (#23710)#23721

Merged
asmorkalov merged 1 commit intoopencv:4.xfrom
asmorkalov:as/openjpeg_2.5_warning_fix
Jun 2, 2023
Merged

Fixed OpenJPEG 2000 compiler warning for some GCC versions (#23710)#23721
asmorkalov merged 1 commit intoopencv:4.xfrom
asmorkalov:as/openjpeg_2.5_warning_fix

Conversation

@asmorkalov
Copy link
Copy Markdown
Contributor

@asmorkalov asmorkalov commented Jun 1, 2023

Address: #23710
Warning introduced in #23682
Technically, there is function prototype in openjp2/ht_dec.c:1096. It's only place where the function is used. I added warning suppression.

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

@mshabunin
Copy link
Copy Markdown
Contributor

This problem seems to be fixed in the upstream (uclouvain/openjpeg#1462), but not released yet.

@asmorkalov
Copy link
Copy Markdown
Contributor Author

Will be removed with the next OpenJPEG update.

@opencv-alalek opencv-alalek linked an issue Jun 1, 2023 that may be closed by this pull request
Copy link
Copy Markdown
Contributor

@opencv-alalek opencv-alalek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@asmorkalov asmorkalov merged commit 36d6ca5 into opencv:4.x Jun 2, 2023
@asmorkalov asmorkalov mentioned this pull request Jul 12, 2023
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.

Build regression after OpenJPEG upgrade

3 participants