Module Name:    src
Committed By:   mrg
Date:           Mon Sep  7 00:32:00 UTC 2020

Modified Files:
        src/sys/arch/m68k/include: mcontext.h

Log Message:
pass a pointer conversion via uintptr_t *and* the desired type casts.
avoids new GCC 9 warnings with C++ code.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/m68k/include/mcontext.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/m68k/include/mcontext.h
diff -u src/sys/arch/m68k/include/mcontext.h:1.10 src/sys/arch/m68k/include/mcontext.h:1.11
--- src/sys/arch/m68k/include/mcontext.h:1.10	Thu Feb 15 15:53:56 2018
+++ src/sys/arch/m68k/include/mcontext.h	Mon Sep  7 00:32:00 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: mcontext.h,v 1.10 2018/02/15 15:53:56 kamil Exp $	*/
+/*	$NetBSD: mcontext.h,v 1.11 2020/09/07 00:32:00 mrg Exp $	*/
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -126,7 +126,8 @@ static __inline struct tls_tcb *
 __lwp_gettcb_fast(void)
 {
 	unsigned int __tcb = (unsigned int)_lwp_getprivate();
-	return (void *)(__tcb - TLS_TP_OFFSET - sizeof(struct tls_tcb));
+	return (struct tls_tcb *)(uintptr_t)
+	    (__tcb - TLS_TP_OFFSET - sizeof(struct tls_tcb));
 }
 
 static inline void

Reply via email to