Cygwin: avoid GCC 8.3 errors with -Werror=class-memaccess

This commit is contained in:
Ken Brown
2019-07-15 14:22:07 -04:00
parent bae987be12
commit f0cf44dc7d
4 changed files with 6 additions and 6 deletions

View File

@ -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;