Skip to content

Commit

Permalink
Stop compiler whining?
Browse files Browse the repository at this point in the history
  • Loading branch information
abellgithub committed Jul 23, 2021
1 parent e2cc8d6 commit 5a2672c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pdal/util/Uuid.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,17 @@ namespace pdal
#pragma pack(1)
struct uuid
{
uuid() : time_low(0), time_mid(0), time_hi_and_version(0), clock_seq(0), node {}
{}
uuid()
{ clear(); }

uint32_t time_low;
uint16_t time_mid;
uint16_t time_hi_and_version;
uint16_t clock_seq;
uint8_t node[6];

void clear()
{ memset(this, 0, sizeof(this); }
};
#pragma pack(pop)

Expand Down Expand Up @@ -107,8 +110,7 @@ class PDAL_DLL Uuid
{ parse(s); }

void clear()
{ memset(&m_data, 0, sizeof(m_data)); }

{ m_data.clear(); }
void unpack(const char *c)
{
BeExtractor e(c, 10);
Expand Down

0 comments on commit 5a2672c

Please sign in to comment.