Add missing #include <algorithm> for std::min/std::max uses, and #include <limits> for std::numeric_limits<> (#7624)

This commit is contained in:
Even Rouault
2022-11-08 18:36:35 +01:00
committed by GitHub
parent 214cc94681
commit a22434e2a1
19 changed files with 32 additions and 5 deletions

View File

@@ -1,3 +1,5 @@
#include <limits>
#include "flexbuffers_test.h"
#include "flatbuffers/flexbuffers.h"
@@ -289,4 +291,4 @@ void ParseFlexbuffersFromJsonWithNullTest() {
}
} // namespace tests
} // namespace flatbuffers
} // namespace flatbuffers

View File

@@ -1,3 +1,5 @@
#include <algorithm>
#include "fuzz_test.h"
#include "flatbuffers/flatbuffers.h"
@@ -302,4 +304,4 @@ void FuzzTest2() {
}
} // namespace tests
} // namespace flatbuffers
} // namespace flatbuffers

View File

@@ -1,5 +1,6 @@
#include "monster_test.h"
#include <limits>
#include <vector>
#include "flatbuffers/flatbuffer_builder.h"
@@ -852,4 +853,4 @@ void UnPackTo(const uint8_t *flatbuf) {
}
} // namespace tests
} // namespace flatbuffers
} // namespace flatbuffers

View File

@@ -1,6 +1,7 @@
#include "parser_test.h"
#include <cmath>
#include <limits>
#include <string>
#include "flatbuffers/idl.h"

View File

@@ -16,6 +16,7 @@
#include <stdint.h>
#include <cmath>
#include <limits>
#include <memory>
#include <string>