diff options
author | comex <comexk@gmail.com> | 2020-11-14 18:33:40 -0500 |
---|---|---|
committer | comex <comexk@gmail.com> | 2020-12-06 18:37:23 -0500 |
commit | b8fbf6969c33a72c7facfd23e7a850e718afac43 (patch) | |
tree | 270ee450e5d905dfe3cc36baf166b462312e72fa /src | |
parent | 7e5f595b31771384be0be7f403160340312886bb (diff) |
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).
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/buffer_cache/map_interval.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/buffer_cache/map_interval.h b/src/video_core/buffer_cache/map_interval.h index fe0bcd1d8f..ef974b08ae 100644 --- a/src/video_core/buffer_cache/map_interval.h +++ b/src/video_core/buffer_cache/map_interval.h @@ -84,9 +84,10 @@ private: void FillFreeList(Chunk& chunk); std::vector<MapInterval*> free_list; - std::unique_ptr<Chunk>* new_chunk = &first_chunk.next; Chunk first_chunk; + + std::unique_ptr<Chunk>* new_chunk = &first_chunk.next; }; } // namespace VideoCommon |