Skip to content

Commit 93c9474

Browse files
committed
NFC: Resolve "was never used" warnings in ASTGen.
1 parent 5ee9bfd commit 93c9474

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

lib/ASTGen/Sources/ASTGen/PluginHost.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ public func _initializePlugin(
3131
cxxDiagnosticEngine: UnsafeMutableRawPointer?
3232
) -> Bool {
3333
let plugin = CompilerPlugin(opaqueHandle: opaqueHandle)
34-
let diagEngine = PluginDiagnosticsEngine(cxxDiagnosticEngine: cxxDiagnosticEngine)
3534

3635
do {
3736
try plugin.initialize()

lib/ASTGen/Sources/ASTGen/Stmts.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ extension ASTGenVisitor {
446446
switch node {
447447
case .switchCase(let node):
448448
return ASTNode.stmt(self.generate(switchCase: node).asStmt).bridged
449-
case .ifConfigDecl(let node):
449+
case .ifConfigDecl(_):
450450
fatalError("unimplemented")
451451
}
452452
}).bridgedArray(in: self)

0 commit comments

Comments
 (0)