mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
builtin,os: fix unused return C warnings for real (#9814)
This commit is contained in:
@ -740,10 +740,11 @@ pub fn is_link(path string) bool {
|
||||
|
||||
// chdir changes the current working directory to the new directory in `path`.
|
||||
pub fn chdir(path string) {
|
||||
mut n := 0
|
||||
$if windows {
|
||||
C._wchdir(path.to_wide())
|
||||
} $else {
|
||||
C.chdir(&char(path.str))
|
||||
n = C.chdir(&char(path.str))
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user