Skip to content

runtime: silence -Wunused-variable warning (NFC) #32183

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 4, 2020

Conversation

compnerd
Copy link
Member

@compnerd compnerd commented Jun 4, 2020

classMetadata is only used in the ObjC path, resulting in a
-Wunused-variable warning. Sink the variable into the ObjC path.
Because the conversion of the metadata does not rely on the type
metadata bits in the metadata, it is safe to delay the definition and
bit adjustment to the point where it is used unifying the two ObjC
paths.

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

`classMetadata` is only used in the ObjC path, resulting in a
`-Wunused-variable` warning.  Sink the variable into the ObjC path.
Because the conversion of the metadata does not rely on the type
metadata bits in the metadata, it is safe to delay the definition and
bit adjustment to the point where it is used unifying the two ObjC
paths.
@compnerd
Copy link
Member Author

compnerd commented Jun 4, 2020

CC: @mikeash

@compnerd
Copy link
Member Author

compnerd commented Jun 4, 2020

@swift-ci please test

@compnerd compnerd merged commit 9ceb9ff into swiftlang:master Jun 4, 2020
@compnerd compnerd deleted the path-unification branch June 4, 2020 19:34
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.

None yet

2 participants