SDAVAssetExportSession icon indicating copy to clipboard operation
SDAVAssetExportSession copied to clipboard

XCode 9: This block declaration is not a prototype

Open Jan-E opened this issue 8 years ago • 1 comments

XCode 9 with the recommended settings issues a warning for 3 lines. Suggested fixes:

In the .h file

-- (void)exportAsynchronouslyWithCompletionHandler:(void (^)())handler;
+- (void)exportAsynchronouslyWithCompletionHandler:(void (^)(void))handler;

In the .m file

-@property (nonatomic, strong) void (^completionHandler)();
+@property (nonatomic, strong) void (^completionHandler)(void);

and

-- (void)exportAsynchronouslyWithCompletionHandler:(void (^)())handler
+- (void)exportAsynchronouslyWithCompletionHandler:(void (^)(void))handler

@rs Would there be any problem to change these lines with the recommended fixes?

Jan-E avatar Sep 20 '17 04:09 Jan-E

This could help you. It is a little different than your question but I think they are related anyways. https://stackoverflow.com/questions/44473146/this-function-declaration-is-not-a-prototype-warning-in-xcode-9

3257 avatar Oct 07 '17 11:10 3257