Skip to content

[NFC] TypeCheckDeclPrimary.cpp: remove unused isGenericType #66453

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 8, 2023

Conversation

MaxDesiatov
Copy link
Contributor

This change fixes a warning encountered when compiling this file:

swift/lib/Sema/TypeCheckDeclPrimary.cpp:475:8: warning: unused variable 'isGenericType' [-Wunused-variable]
  bool isGenericType = isa<NominalTypeDecl>(decl);

This change fixes a warning encountered when compiling this file:

```
swift/lib/Sema/TypeCheckDeclPrimary.cpp:475:8: warning: unused variable 'isGenericType' [-Wunused-variable]
  bool isGenericType = isa<NominalTypeDecl>(decl);
```
@MaxDesiatov MaxDesiatov added type checker Area → compiler: Semantic analysis nfc Flag: No Functional Change labels Jun 8, 2023
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test and merge

Copy link
Contributor

@xedin xedin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@swift-ci swift-ci merged commit f3cabc5 into main Jun 8, 2023
@swift-ci swift-ci deleted the maxd/fix-typecheck-warning branch June 8, 2023 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
nfc Flag: No Functional Change type checker Area → compiler: Semantic analysis
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants