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

replacing deprecated methods per analyzer warning notes #38

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rcarlsen
Copy link
Contributor

The static analyzer was complaining about aslresponse_next() and aslresponse_free(); the deprecation comments point out appropriate replacements, which I've substituted here.

@rcarlsen
Copy link
Contributor Author

It appears that the Apple header incorrectly describes asl_next() and asl_release() being available in iOS 7.0. They are not defined in the 7.0 SDK header (/usr/include/asl.h).

I'll update this PR with an additional compile and run-time check.

The deprecation attribute incorrectly states that the replacement
methods, asl_next()/asl_release(), are available in __IPHONE_7_0;
however, they first appear in __IPHONE_8_0.

This would require both a compile and runtime check to properly
implement the new methods while the minimum deployment target for
this project remains iOS 7.0.
@rcarlsen
Copy link
Contributor Author

I've reverted to the deprecated methods but silence the warning, along with a lengthy comment about the issue to alert the future us' about why it was done.

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