Advertisement
PVS-StudioWarnings

PVS-Studio warning V571 for IPP Samples

Nov 24th, 2014
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.54 KB | None | 0 0
  1. void rrGetNextBunch_Spiral(....)
  2. {
  3.   int x,y;
  4.   ...
  5.   if(x < 0)
  6.     if(x < 0)  goto _begine;
  7.   ...
  8.   if(y < 0)
  9.     if(y < 0)  goto _begine;
  10.   ...
  11. }
  12.  
  13. This suspicious code was found in IPP Samples project by PVS-Studio static code analyzer.
  14. Warning message is:
  15. V571 Recurring check. The 'if (x < 0)' condition was already verified in line 1025. 3d-viewer rrdemosupport.cpp 1026
  16.  
  17. 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
Advertisement