Syntax

-we

Description

This option directs the linker to treat all warnings as errors.

Project property

General Options > Treat Warnings as Errors