Skip to content

Commit d10f6f9

Browse files
committed
ASTGen: Resolve 'was defined but never used' warnings.
1 parent 7c1cdaf commit d10f6f9

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

lib/ASTGen/Sources/ASTGen/DeclAttrs.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@ extension ASTGenVisitor {
367367
return []
368368
}
369369

370+
_ = args
370371
fatalError("unimplemented")
371372
}
372373

@@ -757,6 +758,7 @@ extension ASTGenVisitor {
757758
return []
758759
}
759760

761+
_ = args
760762
fatalError("unimplemented")
761763
}
762764

@@ -939,6 +941,8 @@ extension ASTGenVisitor {
939941
// TODO: Diagnose.
940942
return nil
941943
}
944+
945+
_ = args
942946
fatalError("unimplemented")
943947
}
944948

lib/ASTGen/Sources/ASTGen/Exprs.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ extension ASTGenVisitor {
266266

267267
if let signature = node.signature {
268268
// FIXME: Translate the signature, capture list, 'in' location, etc.
269+
_ = signature
269270
fatalError("unimplmented")
270271
} else {
271272
let lBraceLoc = self.generateSourceLoc(node.leftBrace)

0 commit comments

Comments
 (0)