summaryrefslogtreecommitdiff
path: root/src/input_common/sdl/sdl_impl.h
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
commitec8d72a567b8c8bddd3d31a96d3b992946c40b4d (patch)
tree28e344daf833f847b96be87c5a2dcc104f50693f /src/input_common/sdl/sdl_impl.h
parentab350b8975bc0fd9f9130392554bc5c669ca640f (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/input_common/sdl/sdl_impl.h')
0 files changed, 0 insertions, 0 deletions