Syntax

-we

Description

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

Project property

Build Options > Treat Warnings as Errors