Subject: Re: [boost] [wiki] Warning Guidelines for VC
From: Michael Caisse (boost_at_[hidden])
Date: 2011-01-07 18:41:33
On 01/07/2011 03:41 PM, Pete Bartlett wrote:
> [Snip Discussion on /Za]
> Hi Paul,
> I've also had problems with /Za that you discuss on the wiki page and at my
> current shop we don't use it, despite having developers who may compile on
> MSVC only prior to commit. Given we release with GCC too, this means we want
> to make the compilers as similar as possible.
> One way of doing this is to promote certain warnings to errors via compile
> flags e.g. we currently set
> /we4288 - For-loop scoping
> /we4238 - don't take address of temporaries
> /we4239 - don't bind temporaries to non-const references (Stephan's "Evil
> /we4346 - require "typename" where the standard requires it.
> /Zc:forScope - For loop scoping again
> /DNOMINMAX - don't define min/max macros
> Perhaps this alternate techinque might be mentioned on that page.
This is a great list Pete. Thank you for commenting!
-- Michael Caisse Object Modeling Designs www.objectmodelingdesigns.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk