summaryrefslogtreecommitdiff
path: root/src/input_common/sdl/sdl_impl.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2020-08-23 14:40:39 -0400
committerGravatar Lioncash2020-08-23 21:19:01 -0400
commitec8d72a567b8c8bddd3d31a96d3b992946c40b4d (patch)
tree28e344daf833f847b96be87c5a2dcc104f50693f /src/input_common/sdl/sdl_impl.cpp
parentMerge pull request #4561 from lioncash/key-constexpr (diff)
downloadyuzu-ec8d72a567b8c8bddd3d31a96d3b992946c40b4d.tar.gz
yuzu-ec8d72a567b8c8bddd3d31a96d3b992946c40b4d.tar.xz
yuzu-ec8d72a567b8c8bddd3d31a96d3b992946c40b4d.zip
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/input_common/sdl/sdl_impl.cpp')
0 files changed, 0 insertions, 0 deletions