Skip to content

Comments

Fix compiler warnings in ByteCodeGen, Compiler, and Regex#854

Open
tshortli wants to merge 1 commit intoswiftlang:mainfrom
tshortli:fix-warnings
Open

Fix compiler warnings in ByteCodeGen, Compiler, and Regex#854
tshortli wants to merge 1 commit intoswiftlang:mainfrom
tshortli:fix-warnings

Conversation

@tshortli
Copy link
Contributor

  • Replace unused let bindings with _ in ByteCodeGen+DSLList.swift
  • Replace unused var codegen with _ = in Compiler.swift
  • Add @unknown default to exhaustive switches on AST.Node in ASTConversion.swift since the switch enumerates cases from a library with library evolution in some build configurations
  • Fix unused bindings and no-effect let patterns in DSLTree.swift and ASTConversion.swift

- Replace unused `let` bindings with `_` in ByteCodeGen+DSLList.swift
- Replace unused `var codegen` with `_ =` in Compiler.swift
- Add `@unknown default` to exhaustive switches on `AST.Node` in ASTConversion.swift
- Fix unused bindings and no-effect `let` patterns in DSLTree.swift and ASTConversion.swift
@tshortli
Copy link
Contributor Author

@swift-ci please test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant