diff options
| author | 2020-11-14 18:33:40 -0500 | |
|---|---|---|
| committer | 2020-12-06 18:37:23 -0500 | |
| commit | b8fbf6969c33a72c7facfd23e7a850e718afac43 (patch) | |
| tree | 270ee450e5d905dfe3cc36baf166b462312e72fa /src | |
| parent | Merge pull request #5143 from comex/xx-users-size (diff) | |
| download | yuzu-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).
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 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 |