Skip to content
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

eliminate warnings #520

Merged
merged 1 commit into from
Aug 17, 2024
Merged

Conversation

mayoff
Copy link
Contributor

@mayoff mayoff commented Aug 16, 2024

This patch eliminates all the compiler warninsg I get under Xcode 16.0 beta 4:

PickerNameProviderMacro.swift:58:13
Initialization of immutable value 'types' was never used; consider replacing with assignment to '_' or removing it

RefCounted.swift:24:9
Result of call to 'initRef()' is unused

Array.swift:301:5
@discardableResult declared on a function returning Void is unnecessary

Packed.swift:13:13
'append(value:)' is deprecated: This method signature has been deprecated in favor of append(_:)

Wrapped.swift:143:28
Value 'node' was defined but never used; consider replacing with boolean test

Wrapped.swift:511:17
Result of call to 'retain()' is unused

This patch eliminates all the compiler warninsg I get under Xcode 16.0 beta 4:

PickerNameProviderMacro.swift:58:13
Initialization of immutable value 'types' was never used; consider replacing with assignment to '_' or removing it

RefCounted.swift:24:9
Result of call to 'initRef()' is unused

Array.swift:301:5
@discardableResult declared on a function returning Void is unnecessary

Packed.swift:13:13
'append(value:)' is deprecated: This method signature has been deprecated in favor of append(_:)

Wrapped.swift:143:28
Value 'node' was defined but never used; consider replacing with boolean test

Wrapped.swift:511:17
Result of call to 'retain()' is unused

ObjectCollectionTests.swift:41:81
'append(value:)' is deprecated: This method signature has been deprecated in favor of append(_:)

ObjectCollectionTests.swift:56:19
'append(value:)' is deprecated: This method signature has been deprecated in favor of append(_:)

VariantCollectionTests.swift:38:19
'append(value:)' is deprecated: This method signature has been deprecated in favor of append(_:)

VariantCollectionTests.swift:48:28
'append(value:)' is deprecated: This method signature has been deprecated in favor of append(_:)
@mayoff mayoff force-pushed the eliminate-warnings branch from f836329 to 9c54b78 Compare August 16, 2024 22:09
@mayoff
Copy link
Contributor Author

mayoff commented Aug 16, 2024

Forgot to build the test cases before opening the PR. The force push 9c54b78 eliminates the four warnings from the test cases.

@migueldeicaza
Copy link
Owner

Oh, delightful!

I'll review tonight!

@migueldeicaza migueldeicaza merged commit 4ea00da into migueldeicaza:main Aug 17, 2024
2 checks passed
@mayoff mayoff deleted the eliminate-warnings branch August 17, 2024 03:21
migueldeicaza pushed a commit that referenced this pull request Jan 19, 2025
This patch eliminates all the compiler warninsg I get under Xcode 16.0 beta 4:

PickerNameProviderMacro.swift:58:13
Initialization of immutable value 'types' was never used; consider replacing with assignment to '_' or removing it

RefCounted.swift:24:9
Result of call to 'initRef()' is unused

Array.swift:301:5
@discardableResult declared on a function returning Void is unnecessary

Packed.swift:13:13
'append(value:)' is deprecated: This method signature has been deprecated in favor of append(_:)

Wrapped.swift:143:28
Value 'node' was defined but never used; consider replacing with boolean test

Wrapped.swift:511:17
Result of call to 'retain()' is unused

ObjectCollectionTests.swift:41:81
'append(value:)' is deprecated: This method signature has been deprecated in favor of append(_:)

ObjectCollectionTests.swift:56:19
'append(value:)' is deprecated: This method signature has been deprecated in favor of append(_:)

VariantCollectionTests.swift:38:19
'append(value:)' is deprecated: This method signature has been deprecated in favor of append(_:)

VariantCollectionTests.swift:48:28
'append(value:)' is deprecated: This method signature has been deprecated in favor of append(_:)

Co-authored-by: Rob Mayoff <[email protected]>
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.

2 participants