From 67dc6bed1fc62b740351713e7aa42fe1eae896b6 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Fri, 4 Sep 2020 00:11:01 +0000 Subject: 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(-) (limited to 'stand/efi') diff --git a/stand/efi/loader/copy.c b/stand/efi/loader/copy.c index f4887df11e5c..1185c94740d6 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); -- cgit v1.2.3