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

@ -313,7 +313,7 @@ class path_conv
path_conv& eq_worker (const path_conv& pc, const char *in_path)
{
free_strings ();
memcpy (this, &pc, sizeof pc);
memcpy ((void *) this, &pc, sizeof pc);
/* The device info might contain pointers to allocated strings, in
contrast to statically allocated strings. Calling device::dup()
will duplicate the string if the source was allocated. */