11
I'm trying to get rid of an annoying warning that CLANG/LLVM 3.0 is giving me. I have the following ivar set in my object:
bool preloaded;
And the following property declaration:
@property(readonly) bool preloaded;
And the following synthesize call:
@synthesize preloaded;
As it stands, the compiler complains:
Property is assumed atomic by default
If I change the property declaration to add "atomic":
@property(atomic,readonly) bool preloaded;
It complains about that, too:
error: expected a property attribute before 'atomic'
So it appears I'm damned if I do and damned if I don't... Is there something I'm missing?