You can uncheck the "Missing brackets and brackets" checkboxes in the build settings (in the "GCC 4.2 Warnings" section if you are using GCC4.2 or LLVM GCC4.2).
This is equivalent to the aeprius-related answer that works with LLVM 2.0 but not with GCC 4.2 (verified).
I understand that this warning is now enabled by default to avoid confusion between assignment and testing for equality.
As the Bavarian said here , if (self = [super init]) {...} is idiomatic in Objective-C. The warning has been disabled by default. In Xcode 3.x, and it seems that migrated projects automatically get a "new default"; sorry to get all these warnings about migrated projects.
At the very least, returning a warning will not make the encoding less secure than in Xcode 3.x.
user234736
source share