PVS-StudioWarnings

PVS-Studio warning V529 for xpdfwin

Nov 11th, 2014
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.56 KB | None | 0 0
  1. BOOL AddTail(LPVOID p)
  2. {
  3.   ...
  4.   if(queue.GetSize() >= this->_limit);
  5.   {
  6.     while(queue.GetSize() > this->_limit-1)
  7.     {
  8.       ::WaitForSingleObject(handles[SemaphoreIndex], 1);
  9.       queue.Delete(0);
  10.     }
  11.   }
  12.   ...
  13. }
  14.  
  15. This suspicious code was found in xpdfwin project by PVS-Studio static code analyzer.
  16. Warning message is:
  17. V529 Odd semicolon ';' after 'if' operator. AFPDFLib queue.h 66
  18.  
  19. 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