PVS-StudioWarnings

PVS-Studio warning V601 for IPP Samples

Nov 19th, 2014
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.60 KB | None | 0 0
  1. class MeMV
  2. {
  3. public:
  4.   MeMV(){};
  5.   MeMV(int a0){x = (Ipp16s)a0; y=(Ipp16s)a0;};
  6.   MeMV(int a0, int a1){x = (Ipp16s)a0; y=(Ipp16s)a1;};
  7.   ...
  8. }
  9.  
  10. MeMV MePredictCalculatorVC1::GetPrediction8x8()
  11. {
  12.   ...
  13.   default:
  14.     return false;
  15.   ...
  16. }
  17.  
  18. This suspicious code was found in IPP Samples project by PVS-Studio static code analyzer.
  19. Warning message is:
  20. V601 The 'false' value becomes a class object. me umc_vec_prediction.cpp 754
  21.  
  22. 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