mirror of
https://github.com/vlang/v.git
synced 2025-09-15 23:42:28 +03:00
tests: fix all warnings for v test-all
on linux
This commit is contained in:
parent
18f1874586
commit
b4b860cb1f
2 changed files with 7 additions and 7 deletions
|
@ -255,7 +255,7 @@ fn sys_close(fd i64) Errno {
|
|||
fn sys_mmap(addr &u8, len u64, prot MemProt, flags MapFlags, fildes i64, off u64) (&u8, Errno) {
|
||||
rc := sys_call6(9, u64(addr), len, u64(prot), u64(flags), fildes, off)
|
||||
a, e := split_int_errno(rc)
|
||||
return &u8(a), e
|
||||
return unsafe { &u8(a) }, e
|
||||
}
|
||||
|
||||
// 11 sys_munmap
|
||||
|
@ -267,7 +267,7 @@ fn sys_munmap(addr voidptr, len u64) Errno {
|
|||
fn sys_mremap(old_addr voidptr, old_len u64, new_len u64, flags u64) (&u8, Errno) {
|
||||
rc := sys_call4(25, u64(old_addr), old_len, new_len, flags)
|
||||
a, e := split_int_errno(rc)
|
||||
return &u8(a), e
|
||||
return unsafe { &u8(a) }, e
|
||||
}
|
||||
|
||||
// 22 sys_pipe
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue