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

Assign actual value to a strong variable in EXP_expect. #176

Merged

Conversation

StatusReport
Copy link
Contributor

Weak values are accessed multiple times in EXP_expect, and may be set to nil in the middle of expectation.

This is revealed by expecting a weak value and turning on the CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK property in the build settings.

Weak values are accessed multiple times in EXP_expect, and may be set to
nil in the middle of expectation.

This is revealed by expecting a weak value and turning on
the CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK property in the build settings.
@orta
Copy link
Member

orta commented Oct 27, 2015

Alright, this feels 👍 - I was wondering if there had been churn around this but can't find anything in the history.

orta added a commit that referenced this pull request Oct 27, 2015
…strongly

Assign actual value to a strong variable in EXP_expect.
@orta orta merged commit cb5c068 into specta:master Oct 27, 2015
@StatusReport StatusReport deleted the feature/hold-expected-object-strongly branch October 28, 2015 07:31
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