Improved Windows support
This commit is contained in:
@ -29,6 +29,10 @@ func (s *Scanner) queueDirectory(directory string, pkg string) {
|
||||
return
|
||||
}
|
||||
|
||||
if strings.HasSuffix(name, "_windows.q") && config.TargetOS != "windows" {
|
||||
return
|
||||
}
|
||||
|
||||
fullPath := filepath.Join(directory, name)
|
||||
s.queueFile(fullPath, pkg)
|
||||
})
|
||||
|
@ -249,7 +249,7 @@ func (s *Scanner) scanFile(path string, pkg string) error {
|
||||
register := x64.InputRegisters[count]
|
||||
uses := token.Count(function.Body, contents, token.Identifier, name)
|
||||
|
||||
if uses == 0 {
|
||||
if uses == 0 && name != "_" {
|
||||
return errors.New(&errors.UnusedVariable{Name: name}, file, tokens[0].Position)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user