Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Sep 2020 00:11:01 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r365318 - head/stand/efi/loader
Message-ID:  <202009040011.0840B2pe020288@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Fri Sep  4 00:11:01 2020
New Revision: 365318
URL: https://svnweb.freebsd.org/changeset/base/365318

Log:
  Quiet int-to-pointer-cast warnings on i386 with GCC 9.
  
  Reviewed by:	emaste
  Differential Revision:	https://reviews.freebsd.org/D26200

Modified:
  head/stand/efi/loader/copy.c

Modified: head/stand/efi/loader/copy.c
==============================================================================
--- head/stand/efi/loader/copy.c	Thu Sep  3 23:17:25 2020	(r365317)
+++ head/stand/efi/loader/copy.c	Fri Sep  4 00:11:01 2020	(r365318)
@@ -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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009040011.0840B2pe020288>