yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

map_interval: Change field order to address uninitialized field warning

Clang complains about `new_chunk`'s constructor using the
then-uninitialized `first_chunk` (even though it's just to get a pointer
into it).
This commit is contained in:
comex 2020-11-14 18:33:40 -05:00
parent 7e5f595b31
commit b8fbf6969c
1 changed files with 2 additions and 1 deletions

View File

@ -84,9 +84,10 @@ private:
void FillFreeList(Chunk& chunk); void FillFreeList(Chunk& chunk);
std::vector<MapInterval*> free_list; std::vector<MapInterval*> free_list;
std::unique_ptr<Chunk>* new_chunk = &first_chunk.next;
Chunk first_chunk; Chunk first_chunk;
std::unique_ptr<Chunk>* new_chunk = &first_chunk.next;
}; };
} // namespace VideoCommon } // namespace VideoCommon