Skip to content

Commit

Permalink
Add missing <cstdint headers for uint*_t types
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
trofi authored and github-actions[bot] committed Dec 13, 2022
1 parent c997674 commit 7538be4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions frmts/mrf/LERCV1/Lerc1Image.cpp
Expand Up @@ -22,6 +22,7 @@ Contributors: Thomas Maurer
*/

#include "Lerc1Image.h"
#include <cstdint>
#include <cmath>
#include <cfloat>
#include <string>
Expand Down
1 change: 1 addition & 0 deletions ogr/ogrsf_frmts/openfilegdb/filegdbindex_write.cpp
Expand Up @@ -32,6 +32,7 @@
#include "filegdbtable_priv.h"

#include <cctype>
#include <cstdint>
#include <algorithm>
#include <limits>

Expand Down

0 comments on commit 7538be4

Please sign in to comment.