How to handle the Xcode warning “no previous prototype for function…”?

后端 未结 3 808
予麋鹿
予麋鹿 2021-02-02 06:21

This warning is popping up a bunch in some third party libraries.

Is there a way to handle it without modifying the code (e.g. ignore the warning)?

If I have to

3条回答
  •  长发绾君心
    2021-02-02 07:08

    In Xcode4, go to your project's Build Settings. Search for "prototype". There should be an option called "Missing Function Prototypes"; disable it. You can also do this to the specific target(s) in question.

提交回复
热议问题