Skip to content
This repository has been archived by the owner on Jun 2, 2018. It is now read-only.

Fix warnings building with -Warc-bridge-casts-disallowed-in-nonarc #175

Closed
wants to merge 1 commit into from
Closed

Conversation

jhersh
Copy link

@jhersh jhersh commented Sep 7, 2013

In Xcode 4.6.3, building with iOS 6.1 as a target and using -Warc-bridge-casts-disallowed-in-nonarc, I get several warnings in BKMacros.h: '__bridge' casts have no effect when not using ARC.

This pull request just removes those __bridge casts so the project builds properly.

I haven't tested this on OSX so not sure if there are any other side effects, but it would be nice to build on iOS with stricter settings. Thanks for a great project!

@zwaldowski
Copy link
Collaborator

BlocksKit has not supported being compiled without ARC since the release of the iOS 5 GM SDK in October 2011.

@zwaldowski zwaldowski closed this Sep 9, 2013
@jhersh
Copy link
Author

jhersh commented Sep 9, 2013

I am using ARC, and BlocksKit (installed via Cocoapods) is as well. Not entirely sure what's going on here. I did disable that compiler flag. Thanks anyway

@zwaldowski
Copy link
Collaborator

I'm sorry I couldn't help better. I've never seen that warning in ARC mode, and I'm looking at the Clang's source right now and that warning can't be reached unless it's being parsed in non-ARC mode.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants