DescriptionDisable the noisiest /analyze warning in Chrome. ~3,700/12,000
Decades ago Intel decided that the bsr (Bit Scan Reverse) instruction
should have undefined results if its argument is zero. This probably
makes the instruction harder to implement and it definitely makes it
more difficult to use.
In SkCLZ_portable it requires a check for a zero argument, but despite
that check /analyze still warns that _BitScanReverse might fail
(because it doesn't know what can cause failures). Because this warning
occurs in a frequently included header file it ends up being very noisy,
accounting for ~30% of all warnings (before deduplication).
Suppressing this useless warning will make the raw results easier to
look through.
Committed: https://skia.googlesource.com/skia/+/aea85dc3d332c963f5b85460036951ae3386683a
Patch Set 1 #
Total comments: 4
Patch Set 2 : Use warning(suppress instead of warning(disable for tighter scoping. #Patch Set 3 : Added comment. #
Total comments: 1
Patch Set 4 : Remove _PREFAST_ check. #Messages
Total messages: 22 (5 generated)
|