artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05c58b1
)
cast TCB_GET() to void * to avoid -Wpointer-integer-compare warning
author
jsg
<jsg@openbsd.org>
Fri, 23 Apr 2021 12:07:14 +0000
(12:07 +0000)
committer
jsg
<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
patch
|
blob
|
history
diff --git
a/sys/arch/riscv64/include/tcb.h
b/sys/arch/riscv64/include/tcb.h
index
697bb65
..
85b4e97
100644
(file)
--- 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 { \