v
v copied to clipboard
about import warning
V version: latest:V 0.1.25 5a6f4aa OS: mac
What did you do? in my module,when I import time module,I just want to use the C function defined
pub struct C.timeval {
tv_sec u64
tv_usec u64
}
I do not use any other function or struct in time module
What did you expect to see? the code can run without a warning. I think one module just only use the C function defined in the other module,It can also be treated as use the module
What did you see instead? the V compiler give me a warning:the following imports were never used: time so I have to redefine C.timeval struct in my own module