]> sourceware.org Git - newlib-cygwin.git/commit
RISC-V: Fix -Wint-conversion warning
authorKito Cheng <kito.cheng@sifive.com>
Mon, 4 Dec 2023 07:41:28 +0000 (15:41 +0800)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 4 Dec 2023 09:26:41 +0000 (10:26 +0100)
commitbcd1883560b79b67f06fa1df6dea60d18fdd00c7
treea3b5f6e81cf229b1450587bb587f4f280782a71f
parentc0d2f3874207e870ffb8a181b0a49637d77e5fdc
RISC-V: Fix -Wint-conversion warning

Upstream GCC has change this warning into error by default, so...we need
to explicitly convert the type from pointer from/to integer, generally
it's unsafe, but we know what we are doing here.

However it's not safe for ilp32 on RV64, but we didn't support that yet, so I
think this fix is good enough now :)
libgloss/riscv/internal_syscall.h
This page took 0.029446 seconds and 5 git commands to generate.