diff options
author | John Baldwin <jhb@FreeBSD.org> | 2020-09-04 00:11:01 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2020-09-04 00:11:01 +0000 |
commit | 67dc6bed1fc62b740351713e7aa42fe1eae896b6 (patch) | |
tree | 6089a70c40a941c174abcdc128f4ba934422c6c2 /stand | |
parent | 51bb2fccfd5b4ab60195573d59b404a14462cb24 (diff) | |
download | src-test-67dc6bed1fc62b740351713e7aa42fe1eae896b6.tar.gz src-test-67dc6bed1fc62b740351713e7aa42fe1eae896b6.zip |
Quiet int-to-pointer-cast warnings on i386 with GCC 9.
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D26200
Notes
Notes:
svn path=/head/; revision=365318
Diffstat (limited to 'stand')
-rw-r--r-- | stand/efi/loader/copy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stand/efi/loader/copy.c b/stand/efi/loader/copy.c index f4887df11e5c3..1185c94740d61 100644 --- a/stand/efi/loader/copy.c +++ b/stand/efi/loader/copy.c @@ -290,8 +290,8 @@ before_staging: * translation still works. */ staging_base = addr; - memmove((void *)staging_base, (void *)staging, - staging_end - staging); + memmove((void *)(uintptr_t)staging_base, + (void *)(uintptr_t)staging, staging_end - staging); stage_offset -= (staging - staging_base); staging = staging_base; return (true); |