PVS-StudioWarnings

PVS-Studio warning V529 for ReactOS

Nov 18th, 2014
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.58 KB | None | 0 0
  1. BOOLEAN
  2. CTEScheduleEvent(PCTE_DELAYED_EVENT Event,
  3.                  PVOID Context)
  4. {
  5.   ...
  6.   if (!Event->Queued);
  7.   {
  8.     Event->Queued = TRUE;
  9.     Event->Context = Context;
  10.     ExQueueWorkItem(&Event->WorkItem, CriticalWorkQueue);
  11.   }
  12.   ...
  13. }
  14.  
  15. This suspicious code was found in ReactOS project by PVS-Studio static code analyzer.
  16. Warning message is:
  17. V529 Odd semicolon ';' after 'if' operator. tdi events.c 126
  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