mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
checker: warn if C.m* or C.s* functions are called outside unsafe blocks (#5869)
This commit is contained in:
@@ -121,7 +121,7 @@ pub fn mkdir(path string) ?bool {
|
||||
}
|
||||
}
|
||||
*/
|
||||
r := C.mkdir(charptr(apath.str), 511)
|
||||
r := unsafe {C.mkdir(charptr(apath.str), 511)}
|
||||
if r == -1 {
|
||||
return error(posix_get_error_msg(C.errno))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user