cast TCB_GET() to void * to avoid -Wpointer-integer-compare warning
authorjsg <jsg@openbsd.org>
Fri, 23 Apr 2021 12:07:14 +0000 (12:07 +0000)
committerjsg <jsg@openbsd.org>
Fri, 23 Apr 2021 12:07:14 +0000 (12:07 +0000)
when building kern_sig.c
ok mlarkin@

sys/arch/riscv64/include/tcb.h

index 697bb65..85b4e97 100644 (file)
@@ -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 {                                                            \