-we
This option directs the compiler to treat all warnings as errors.
Build Options > Treat Warnings as Errors