Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Compiler error on MDLDocument: non-void method has void return value #11

Closed
karlbecker opened this Issue Oct 11, 2013 · 3 comments

Comments

Projects
None yet
2 participants
Contributor

karlbecker commented Oct 11, 2013

In MDLDocument.m, the method
- (AFHTTPRequestOperation *)uploadFileAtURL:(NSURL *)fileURL success:(void (^)(MDLFile *newFile))success failure:(void (^)(NSError *))failure
Apple LLVM Compiler 4.2 throws an error because of the
return;
statement without a return value, as seen here:
https://github.com/shazino/MendeleySDK/blob/master/MendeleySDK/MDLDocument.m#L241

I am seeing this error when I use the build in Xcode 4.x in a Cocoapod.

Thanks!

Contributor

vtourraine commented Oct 14, 2013

Thanks for pointing that out. It seems like LLVM used to tolerate this kind of things, and no longer does.

Contributor

vtourraine commented Oct 14, 2013

The new version 1.3.1 is now available on @CocoaPods, including this bug fix.

Contributor

karlbecker commented Oct 14, 2013

Thanks for the great response and fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment