mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
fix Windows build
This commit is contained in:
parent
2ac579ca0a
commit
f7530234c7
@ -453,10 +453,9 @@ fn (p mut Parser) check_unused_variables() {
|
||||
p.scanner.line_nr = var.line_nr - 1
|
||||
p.error('`$var.name` declared and not used')
|
||||
}
|
||||
|
||||
if !var.is_changed && var.is_mut && !p.pref.is_repl && !var.is_arg && !p.pref.translated && var.name != '_' {
|
||||
p.scanner.line_nr = var.line_nr - 1
|
||||
p.error('`$var.name` is declared mutable, but it was never changed')
|
||||
p.error('`$var.name` is declared as mutable, but it was never changed')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ const (
|
||||
|
||||
// Given a root key look for the subkey 'version' and get the path
|
||||
fn find_windows_kit_internal(key RegKey, version string) ?string {
|
||||
mut required_bytes := 0
|
||||
required_bytes := 0 // TODO mut
|
||||
result := C.RegQueryValueExW(key, version.to_wide(), 0, 0, 0, &required_bytes)
|
||||
|
||||
length := required_bytes / 2
|
||||
@ -388,4 +388,5 @@ fn build_thirdparty_obj_file_with_msvc(flag string) {
|
||||
|
||||
res := os.exec('""$msvc.exe_path\\cl.exe" /volatile:ms /Z7 $include_string /c $cfiles /Fo"$obj_path" /D_UNICODE /DUNICODE"')
|
||||
println(res)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user