summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2021-04-23 12:07:15 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2021-04-23 12:07:15 +0000
commit12109bc313d27751bc8ed154e8b21c9a812cf68f (patch)
treeb120563dfce9f692374778b28334f8254482cf10
parent62595b3499f27a8fd8904405d5cd169d4adcba60 (diff)
cast TCB_GET() to void * to avoid -Wpointer-integer-compare warning
when building kern_sig.c ok mlarkin@
-rw-r--r--sys/arch/riscv64/include/tcb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arch/riscv64/include/tcb.h b/sys/arch/riscv64/include/tcb.h
index 697bb655907..85b4e97bc6d 100644
--- a/sys/arch/riscv64/include/tcb.h
+++ b/sys/arch/riscv64/include/tcb.h
@@ -23,7 +23,7 @@
#include <machine/pcb.h>
#define TCB_GET(p) \
- ((struct pcb *)(p)->p_addr)->pcb_tf->tf_tp
+ ((void *)(((struct pcb *)(p)->p_addr)->pcb_tf->tf_tp))
#define TCB_SET(p, addr) \
do { \