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

all: improve unused variable warning (fix x = 1, x += 1 etc)

This commit is contained in:
Alexander Medvednikov
2021-04-23 13:33:48 +03:00
parent aa40dfc1de
commit c7a6d28e13
64 changed files with 199 additions and 141 deletions

View File

@ -3,12 +3,11 @@ module os
fn C.setpgid(pid int, pgid int) int
fn (mut p Process) unix_spawn_process() int {
mut n := 0
mut pipeset := [6]int{}
if p.use_stdio_ctl {
n = C.pipe(&pipeset[0]) // pipe read end 0 <- 1 pipe write end
n = C.pipe(&pipeset[2]) // pipe read end 2 <- 3 pipe write end
n = C.pipe(&pipeset[4]) // pipe read end 4 <- 5 pipe write end
_ = C.pipe(&pipeset[0]) // pipe read end 0 <- 1 pipe write end
_ = C.pipe(&pipeset[2]) // pipe read end 2 <- 3 pipe write end
_ = C.pipe(&pipeset[4]) // pipe read end 4 <- 5 pipe write end
}
pid := fork()
if pid != 0 {