Skip to content
  • Lioncash's avatar
    microprofile: Don't memset through std::atomic types · ec8d72a5
    Lioncash authored
    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.
    ec8d72a5
Loading