__block attribute on property declarations
I have to fix some existing code that builds just fine with LLVM (on iOS) so that it builds with llvm-gcc-4.2 too. I'm done with pretty much everything, except this pattern which is found at a few places: @property (nonatomic, retain) __block id myProperty; I suspect the intent here is to allow access to the property from inside a block without retaining self . How can I remove the __block attribute, which gcc doesn't support here, but still achieve the same effect? I'll suggest you've found a compiler bug, the declaration: @property (nonatomic, retain) __block id myProperty; is meaningless.