From 67dc6bed1fc62b740351713e7aa42fe1eae896b6 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Fri, 4 Sep 2020 00:11:01 +0000 Subject: [PATCH] Quiet int-to-pointer-cast warnings on i386 with GCC 9. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D26200 --- stand/efi/loader/copy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stand/efi/loader/copy.c b/stand/efi/loader/copy.c index f4887df11e5..1185c94740d 100644 --- a/stand/efi/loader/copy.c +++ b/stand/efi/loader/copy.c @@ -290,8 +290,8 @@ efi_check_space(vm_offset_t end) * 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); -- 2.45.0