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