Where to add -Wall and -Wextra in Xcode 3.1.4

喜夏-厌秋 提交于 2019-12-07 07:43:07

问题


I'm trying to figure out where to add extra warning flags like -Wall and -Wextra in Xcode, I'm using version 3.1.4 on Leopard. Apple's documentation is for an old version, if I follow their instructions it takes me to a completely different window than what they show. Also they have a screenshot of a checklist of specific warning flags, I can't figure out how to get to that or even if that's still around.

CLARIFICATION: I'm building an iPhone app... bbum pointed me to the right spot for an OS X app, but the options are different for an iPhone project and I don't see an obvious analogue.


回答1:


In the build settings editor (double-click either the project icon or an individual target in Xcode's project window), search for "Other". You should see "Other C Flags" and "Other C++ Flags". You can add any additional flags there.

(Note that you won't see either if you happen to have a project with no source files -- a project with no "compile source files" build phases)



来源:https://stackoverflow.com/questions/1996108/where-to-add-wall-and-wextra-in-xcode-3-1-4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!