Skip to content

build: fix GCC12 compilation#21497

Merged
opencv-pushbot merged 1 commit intoopencv:3.4from
alalek:fix_build_gcc12_3.4
Jan 23, 2022
Merged

build: fix GCC12 compilation#21497
opencv-pushbot merged 1 commit intoopencv:3.4from
alalek:fix_build_gcc12_3.4

Conversation

@alalek
Copy link
Copy Markdown
Member

@alalek alalek commented Jan 22, 2022

relates #21496

Error message (-Werror=address):

modules/core/src/persistence_base64.cpp: In function ‘bool base64::base64_valid(const uint8_t*, size_t, size_t)’:
modules/core/src/persistence_base64.cpp:167:31: error: comparing the result of pointer addition ‘(src + ((sizetype)off))’ and NULL [-Werror=address]
  167 |     if (src == 0 || src + off == 0)
      |                     ~~~~~~~~~~^~~~
  • Validated with fedora:rawhide docker image

@alalek alalek mentioned this pull request Jan 22, 2022
@opencv-pushbot opencv-pushbot merged commit 3f23770 into opencv:3.4 Jan 23, 2022
This was referenced Jan 26, 2022
@alalek alalek mentioned this pull request Feb 22, 2022
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.

3 participants