DescriptionAdding /analyze support to common.gypi through GYP_DEFINES=win_analyze=1, and suppress one very noisy warning.
When win_analyze=1 is specified then /analyze is added to the command
line to enable static code analysis with VC++.
WarnAsErrors is set to false to allow reporting of all errors.
Additional, WX- is added to disable WarnAsErrors more robustly, necessary because some projects override WarnAsErrors.
Additionally, many noisy but low-value warnings are suppressed.
Finally, _USING_V110_SDK71_ is un-set when win_analyze is true because
this is incompatible with /analyze.
The change to callback_internal.h suppresses an extremely noisy warning about a potentially incorrect use of sizeof():
base\callback_internal.h(80) : warning C6334: sizeof operator applied to an expression with an operator might yield unexpected results: Parentheses can be used to disambiguate certain usages.
With this change almost all of Chrome can be built with high but useful levels of warnings.
bug=427616
Committed: https://crrev.com/4b6961df21fb1475efd3f6713ef5c34b1763d748
Cr-Commit-Position: refs/heads/master@{#301723}
Patch Set 1 #
Total comments: 4
Patch Set 2 : Suppress one warning by adding parentheses and cleanup the common.gypi changes. #
Total comments: 2
Patch Set 3 : Fixed spelling error and moved /analyze settings more globally instead of debug-only. #Patch Set 4 : Fixed comment location #
Messages
Total messages: 15 (3 generated)
|