XCode 4 if (self = [super init]) issue

前端 未结 8 1102
野的像风
野的像风 2021-01-02 17:36

I have recently (e.g. just now) upgraded to XCode 4, and I like it overall, however, there is one thing that annoys me.

When I write code like this:

         


        
8条回答
  •  星月不相逢
    2021-01-02 17:49

    I found the answer to this question here: if(self = [super init]) - LLVM warning! How are you dealing with it?

    Which prescribes adding the "-Wno-idiomatic-parentheses" flag in the building settings. Which did the trick for me.

提交回复
热议问题