PVS-StudioWarnings

PVS-Studio warning V536 for Chromium

Nov 19th, 2014
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.61 KB | None | 0 0
  1. // Coefficients used to convert from RGB to monochrome.
  2. const uint32 kRedCoefficient = 2125;
  3. const uint32 kGreenCoefficient = 7154;
  4. const uint32 kBlueCoefficient = 0721;
  5. const uint32 kColorCoefficientDenominator = 10000;
  6.  
  7. This suspicious code was found in Chromium project by PVS-Studio static code analyzer.
  8. Warning message is:
  9. V536 Be advised that the utilized constant value is represented by an octal form. Oct: 0721, Dec: 465. pwg_encoder.cc 24
  10.  
  11. PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment