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

@@ -1736,7 +1736,7 @@ lf_split (lockf_t *lock1, lockf_t *lock2, lockf_t **split)
splitlock = *split;
assert (splitlock != NULL);
*split = splitlock->lf_next;
memcpy (splitlock, lock1, sizeof *splitlock);
memcpy ((void *) splitlock, lock1, sizeof *splitlock);
/* We have to unset the obj HANDLE here which has been copied by the
above memcpy, so that the calling function recognizes the new object.
See post-lf_split handling in lf_setlock and lf_clearlock. */