i have a little problem with xcode4. i get issues in my projects with this type of code:
- (id)init {
if (self = [super init]) {
}
return self;
}
i know i could fix it with something like:
- (id)init {
if ((self = [super init])) {
}
return self;
}
or
- (id)init {
self = [self init];
if (self) {
}
return self;
}
but the problem is, that i use a massive amount of external libraries in a special project and i don't want to edit this files, push an update to github or something else.
so is there a option to deactivate this type of notification/issue posting in xcode?
You've got two options as far as I know:
Switch to GCC as compiler, as LLVM checks for this warning by default, GCC doesn't
Add -Wno-idiomatic-parentheses
to LLVM compiler Warnings / Other Warning Flags
Clang's Options to Control Error and Warning Messages