aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/memory_manager.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-08-23 14:40:39 -0400
committerLioncash <mathew1800@gmail.com>2020-08-23 21:19:01 -0400
commit72f6214e9b7655a93e14daf9e66c726e0703ac53 (patch)
tree28e344daf833f847b96be87c5a2dcc104f50693f /src/video_core/memory_manager.cpp
parent18cce1dc8a2898b0aa5ad3fa83f679910202a58c (diff)
microprofile: Don't memset through std::atomic types
Two of the members of the MicroProfileThreadLog contains two std::atomic instances. Given these aren't trivially-copyable types, we shouldn't be memsetting the structure, given implementation details can contain other members within it. To avoid potential undefined behavior on platforms, we can use aggregate initialization to zero out the members while still having well-defined behavior. While we're at it we can also silence some sign conversion warnings.
Diffstat (limited to 'src/video_core/memory_manager.cpp')
0 files changed, 0 insertions, 0 deletions