From e974eb3a020fbee90ff1e4e05135d23fd8a4885d Mon Sep 17 00:00:00 2001 From: jsg Date: Fri, 23 Apr 2021 12:07:14 +0000 Subject: [PATCH] cast TCB_GET() to void * to avoid -Wpointer-integer-compare warning when building kern_sig.c ok mlarkin@ --- sys/arch/riscv64/include/tcb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 #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 { \ -- 2.20.1