Skip to content

build: fix more warnings from recent gcc versions after #27337#27343

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

build: fix more warnings from recent gcc versions after #27337#27343
asmorkalov merged 4 commits intoopencv:4.xfrom
fengyuentau:4x/build/fix_more_warnings

Conversation

@fengyuentau
Copy link
Copy Markdown
Member

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

  • 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

int nNewAllocatedSize = anPrimes[set->nIndiceAllocatedSize];
TIFFList **newTabList =
(TIFFList **)(calloc(sizeof(TIFFList *), nNewAllocatedSize));
(TIFFList **)(calloc(nNewAllocatedSize, sizeof(TIFFList *)));
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

set->fnFreeEltFunc = fnFreeEltFunc;
set->nSize = 0;
set->tabList = (TIFFList **)(calloc(sizeof(TIFFList *), 53));
set->tabList = (TIFFList **)(calloc(53, sizeof(TIFFList *)));
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@asmorkalov asmorkalov self-assigned this May 21, 2025
@asmorkalov asmorkalov merged commit c37f54a into opencv:4.x May 21, 2025
27 of 28 checks passed
@fengyuentau fengyuentau deleted the 4x/build/fix_more_warnings branch May 21, 2025 13:41
@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