Skip to content

Instantly share code, notes, and snippets.

@ryandesign
Created November 11, 2011 00:43
Show Gist options
  • Save ryandesign/1356766 to your computer and use it in GitHub Desktop.
Save ryandesign/1356766 to your computer and use it in GitHub Desktop.
Fix MongoHub error "incompatible block pointer types initializing 'void (^)()', expected 'dispatch_block_t'" when using gcc
error: incompatible block pointer types initializing 'void (^)()', expected 'dispatch_block_t'
--- ImportWindowController.m.orig 2011-11-01 09:02:57.000000000 -0500
+++ ImportWindowController.m 2011-11-10 17:49:01.000000000 -0600
@@ -121,7 +121,7 @@
}
dispatch_queue_t myQueue = dispatch_queue_create("com.mongohub.mysql", 0);
- dispatch_async(myQueue, ^() {
+ dispatch_async(myQueue, ^ {
long long total = [self importCount:tableName];
long long ii = 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment