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

后端 未结 3 849
予麋鹿
予麋鹿 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:17

    There are no warnings if such a function is defined as inline.

    This may suffice as long as your function is optimized for inline use. http://msdn.microsoft.com/en-us/library/1w2887zk.aspx

提交回复
热议问题