Cygwin: avoid GCC 8.3 errors with -Werror=class-memaccess
This commit is contained in:
@ -1299,7 +1299,7 @@ path_conv::serialize (HANDLE h, unsigned int &n) const
|
||||
n = 0;
|
||||
return NULL;
|
||||
}
|
||||
memcpy (&pcf->pc, this, sizeof *this);
|
||||
memcpy ((void *) &pcf->pc, this, sizeof *this);
|
||||
pcf->hdl = h;
|
||||
pcf->name_len = nlen;
|
||||
pcf->posix_len = plen;
|
||||
@ -1318,7 +1318,7 @@ path_conv::deserialize (void *bufp)
|
||||
char *p;
|
||||
HANDLE ret;
|
||||
|
||||
memcpy (this, &pcf->pc, sizeof *this);
|
||||
memcpy ((void *) this, &pcf->pc, sizeof *this);
|
||||
wide_path = uni_path.Buffer = NULL;
|
||||
uni_path.MaximumLength = uni_path.Length = 0;
|
||||
path = posix_path = NULL;
|
||||
|
Reference in New Issue
Block a user