summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar comex2020-11-14 18:33:40 -0500
committerGravatar comex2020-12-06 18:37:23 -0500
commitb8fbf6969c33a72c7facfd23e7a850e718afac43 (patch)
tree270ee450e5d905dfe3cc36baf166b462312e72fa
parentMerge pull request #5143 from comex/xx-users-size (diff)
downloadyuzu-b8fbf6969c33a72c7facfd23e7a850e718afac43.tar.gz
yuzu-b8fbf6969c33a72c7facfd23e7a850e718afac43.tar.xz
yuzu-b8fbf6969c33a72c7facfd23e7a850e718afac43.zip
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).
-rw-r--r--src/video_core/buffer_cache/map_interval.h3
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 fe0bcd1d8..ef974b08a 100644
--- a/src/video_core/buffer_cache/map_interval.h
+++ b/src/video_core/buffer_cache/map_interval.h
@@ -84,9 +84,10 @@ private:
84 void FillFreeList(Chunk& chunk); 84 void FillFreeList(Chunk& chunk);
85 85
86 std::vector<MapInterval*> free_list; 86 std::vector<MapInterval*> free_list;
87 std::unique_ptr<Chunk>* new_chunk = &first_chunk.next;
88 87
89 Chunk first_chunk; 88 Chunk first_chunk;
89
90 std::unique_ptr<Chunk>* new_chunk = &first_chunk.next;
90}; 91};
91 92
92} // namespace VideoCommon 93} // namespace VideoCommon