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

Compiler warnings in Xcode 6 #395

Open
zubko opened this issue Sep 14, 2014 · 3 comments
Open

Compiler warnings in Xcode 6 #395

zubko opened this issue Sep 14, 2014 · 3 comments

Comments

@zubko
Copy link

zubko commented Sep 14, 2014

.../ASIHTTPRequest.m:1215:70: 'kCFStreamSSLAllowsExpiredCertificates' is deprecated: first deprecated in iOS 4.0
.../ASIHTTPRequest.m:1216:70: 'kCFStreamSSLAllowsAnyRoot' is deprecated: first deprecated in iOS 4.0

According to the comments in CFNetwork/CFSocketStream.h, where these const are declared, it's enough to use only one kCFStreamSSLValidatesCertificateChain param.

So as the kCFStreamSSLValidatesCertificateChain is set to @NO in the same piece of code where deprecated consts are used, will the fix be to remove deprecated consts?

@jonasman
Copy link

There is another one:
Classes/ASIDataCompressor.m:101:11: Initialization of pointer of type 'NSData *' to null from a constant boolean expression

@jonasman
Copy link

I fixed all warnings. Those 2 you mention with your sugestion. Chaning the key and the value to @no.

The last one, the one i mention, i just set the NSData to nil, instead on NO.
And no more warnings now

@manishparihar948
Copy link

@jonasman : where to change the values exactly? am not able to understand it.

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

No branches or pull requests

3 participants