PVS-StudioWarnings

PVS-Studio warning V519 for IPP Samples

Nov 20th, 2014
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.79 KB | None | 0 0
  1. static DWORD WINAPI Decoder(void *p)
  2. {
  3.   ...
  4.   aInfo.statIntercekt.statIntersectEye = 0.;
  5.   aInfo.statIntercekt.statCPPPostPrc = 0.;
  6.   aInfo.statIntercekt.statInner = 0.;
  7.   aInfo.statIntercekt.statCPR = 0.;
  8.   aInfo.allTime = 0.f;
  9.   statCount = MAX_STAT_COUNT;
  10.   aInfo.allTime = 0.;
  11.   ...
  12. }
  13.  
  14. Most likely this is what should be written here: aInfo.kdtTime = 0.;
  15.  
  16. This suspicious code was found in IPP Samples project by PVS-Studio static code analyzer.
  17. Warning message is:
  18. V519 The 'aInfo.allTime' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 336, 338. 3d-viewer 3dvmain.cpp 338
  19.  
  20. 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