When using Xcode analysis (product>analyze) is there a way of ignoring any errors in a given file?
Eg a pragma or something?
We just want to ignore any warnings on third party code, so that it's more obvious to us when there's a problem in our code.
Thanks
As suggested by matthew:
#ifndef __clang_analyzer__
...
#endif
#pragma clang diagnostic ignored "-Wall"
See the clang user's manual for other useful related #pragmas for clang.
This also works for GCC.
#pragma GCC diagnostic ignored "-Wall"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With