Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport release/3.6] Add missing <cstdint headers for uint*_t types #6917

Merged
merged 1 commit into from
Dec 13, 2022

Conversation

rouault
Copy link
Member

@rouault rouault commented Dec 13, 2022

Backport #6915
Authored by: @trofi

Without the change buld fails on upcomig `gcc-13` as:

    frmts/mrf/LERCV1/Lerc1Image.cpp: In member function 'bool Lerc1NS::Lerc1Image::isallsameval(int, int, int, int) const':
    frmts/mrf/LERCV1/Lerc1Image.cpp:730:5: error: 'uint32_t' was not declared in this scope
      730 |     uint32_t val = *reinterpret_cast<const uint32_t *>(&(*this)(r0, c0));
          |     ^~~~~~~~
    /build/gdal/frmts/mrf/LERCV1/Lerc1Image.cpp:29:1: note: 'uint32_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
       28 | #include <algorithm>
      +++ |+#include <cstdint>
@rouault rouault added this to the 3.6.1 milestone Dec 13, 2022
@rouault rouault merged commit 8c2c9d9 into release/3.6 Dec 13, 2022
@rouault rouault deleted the backport-6915-to-release/3.6 branch December 13, 2022 22:55
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