diff options
author | Sergei Trofimovich <slyich@gmail.com> | 2022-05-26 18:36:10 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyich@gmail.com> | 2022-05-26 18:37:15 +0100 |
commit | b36d5172cb2cd99f8ae5262b3e3536cceac76b50 (patch) | |
tree | 8579df470565c9a73075e4d492c2edbbd44b2d39 /tests/lang/eval-okay-sort.nix | |
parent | 5bcd0f09b33d351c4d87784443ce63e85bc989d9 (diff) |
src/libutil/json.cc: add missing <cstdint> include for gcc-13
Without the change llvm build fails on this week's gcc-13 snapshot as:
src/libutil/json.cc: In function 'void nix::toJSON(std::ostream&, const char*, const char*)':
src/libutil/json.cc:33:22: error: 'uint16_t' was not declared in this scope
33 | put(hex[(uint16_t(*i) >> 12) & 0xf]);
| ^~~~~~~~
src/libutil/json.cc:5:1: note: 'uint16_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
4 | #include <cstring>
+++ |+#include <cstdint>
5 |
Diffstat (limited to 'tests/lang/eval-okay-sort.nix')
0 files changed, 0 insertions, 0 deletions