Skip to content

Fix compiler error in Object.dispose (return value goes unused)#29

Merged
mitchellh merged 1 commit intomitchellh:mainfrom
cherrythecool:main
Nov 9, 2025
Merged

Fix compiler error in Object.dispose (return value goes unused)#29
mitchellh merged 1 commit intomitchellh:mainfrom
cherrythecool:main

Conversation

@cherrythecool
Copy link
Contributor

was messing around with objective-c stuff using this and found that if i called .dispose() on an object it wouldn't compile cuz c.object_dispose() returns a value

looking at the apple documentation it looks like the return value isn't important (it literally just says nil), so i just did a simple _ = to let it compile and free the object from memory

@mitchellh mitchellh merged commit 49dae46 into mitchellh:main Nov 9, 2025
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