/WX
Treats all compiler warnings as errors. For a new project, it may be best to use /WX in all compilations; resolving all warnings will ensure the fewest possible hard-to-find code defects.
The linker also has a /WX option. See /WX (Treat Linker Warnings as Errors) for more information.
Visual Studio compiler (cl.exe) flags
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Visual Studio compiler (cl.exe) flags
http://msdn.microsoft.com/en-us/library/fwkeyyhe.aspx