c++ - Issue unused parameter warnings in XCode -
I am using XcodeDA 6.0.1 (6A317) with Mac OS X Mavericks. In my C ++ project, I recently discovered a bug that could be detected by the fact that I forgot to use any parameter of the function. For example, the following functions should result in two warnings (for two unused criteria):
int main (integer argc, const char * argv []) {return 0; Open the build settings of your project In the search field at the top, click the "Unused" enter the. You will see several matching settings under warnings. One of them is the unused parameter, turn it on.
Comments
Post a Comment