diff options
author | Ken Brown <kbrown@cornell.edu> | 2019-07-15 14:22:07 -0400 |
---|---|---|
committer | Ken Brown <kbrown@cornell.edu> | 2019-07-16 13:17:43 -0400 |
commit | f0cf44dc7d98d751483a91869949d58f55531e6f (patch) | |
tree | e5f3689243ed5bf744321e179741eaf53841227d /winsup/cygwin/path.cc | |
parent | bae987be12b12b18a4e7952a25dba2101f5da1d6 (diff) | |
download | newlib-f0cf44dc7d98d751483a91869949d58f55531e6f.zip newlib-f0cf44dc7d98d751483a91869949d58f55531e6f.tar.gz newlib-f0cf44dc7d98d751483a91869949d58f55531e6f.tar.bz2 |
Cygwin: avoid GCC 8.3 errors with -Werror=class-memaccess
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r-- | winsup/cygwin/path.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index 158f1e5..8da858d 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -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; |