Merge pull request #700 from Henny022p/fix/libfmt-g++14

fix libfmt compiler warnings with GCC 14
This commit is contained in:
Henny022p 2026-02-08 17:51:50 +01:00 committed by GitHub
commit 73901a0a01
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View File

@ -30,7 +30,7 @@ FetchContent_Declare(
FetchContent_Declare(
fmt
GIT_REPOSITORY https://github.com/fmtlib/fmt.git
GIT_TAG 8.0.1
GIT_TAG 11.0.2
)
# CLI11
FetchContent_Declare(

View File

@ -36,7 +36,12 @@ void FrameObjListsAsset::convertToHumanReadable(const std::vector<char>& baserom
fmt::print(file.get(), "\t.4byte {:#x}\n", pointer);
}
u32 max_second_level = *std::max_element(second_level.begin(), second_level.end());
auto max_second_level_it = std::max_element(second_level.begin(), second_level.end());
if (max_second_level_it == second_level.end()) {
fmt::print(stderr, "no second level (unreachable)");
exit(1);
}
u32 max_second_level = *max_second_level_it;
while (reader.cursor < size) {
if (static_cast<u32>(reader.cursor) > max_second_level) {