aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcomex <comexk@gmail.com>2020-11-14 18:33:40 -0500
committercomex <comexk@gmail.com>2020-12-06 18:37:23 -0500
commitb8fbf6969c33a72c7facfd23e7a850e718afac43 (patch)
tree270ee450e5d905dfe3cc36baf166b462312e72fa /src
parent7e5f595b31771384be0be7f403160340312886bb (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.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 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