objective-cxcodeclang

Clang (in Xcode): start with -Weverything and manually disable particular warnings


I like to use -Weverything for the compiler to catch all possible warnings, but sometimes I get warnings that I don't want to fix. How can I manually disable those particular warnings as they occur?


Solution

  • You can disable individual warnings using -Wno-XYZ, XYZ being the name of the warning feature to be disabled.