From: jsg Date: Fri, 23 Apr 2021 12:07:14 +0000 (+0000) Subject: cast TCB_GET() to void * to avoid -Wpointer-integer-compare warning X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e974eb3a020fbee90ff1e4e05135d23fd8a4885d;p=openbsd cast TCB_GET() to void * to avoid -Wpointer-integer-compare warning when building kern_sig.c ok mlarkin@ --- 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 { \