1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

all: fix remaining c warnings and add -Werror to CI (#7021)

This commit is contained in:
ka-weihe
2020-11-29 20:23:37 +01:00
committed by GitHub
parent 5eb7660608
commit 9367dcda10
8 changed files with 22 additions and 20 deletions

View File

@ -28,10 +28,10 @@ pub struct C.timeval {
tv_usec u64
}
fn init_time_base() InternalTimeBase {
fn init_time_base() C.mach_timebase_info_data_t {
tb := C.mach_timebase_info_data_t{}
C.mach_timebase_info(&tb)
return InternalTimeBase{numer:tb.numer, denom:tb.denom}
return C.mach_timebase_info_data_t{numer:tb.numer, denom:tb.denom}
}
fn sys_mono_now_darwin() u64 {