treat specific warning as error Xcode
In the Build Settings is it possible to treat Specific warnings as Error instead of Treating all warnings are Errors. This is a simple Switch statement checker in xcode : GCC_WARN_CHECK_SWITCH_STATEMENTS = YES_Error instead of : GCC_WARN_CHECK_SWITCH_STATEMENTS = YES But its not working for me. Treat specific warnings as errors use -Werror= for example: -Werror=unused-variable will treat unused variable as error, which originally treat as warning by -Wunused-variable flag add these to Other Warning Flags in project setting. Treat all warnings as errors except for some warnings use -Werror and