PVS-StudioWarnings

PVS-Studio warning V612 for ReactOS

Nov 20th, 2014
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.79 KB | None | 0 0
  1. VOID NTAPI IKsPin_PinCentricWorker(IN PVOID Parameter)
  2. {
  3.   ....
  4.   do
  5.   {
  6.     DPRINT("IKsPin_PinCentricWorker calling "
  7.            "Pin Process Routine\n");
  8.     Status =
  9.       This->Pin.Descriptor->Dispatch->Process(&This->Pin);
  10.     DPRINT("IKsPin_PinCentricWorker Status %lx, "
  11.            "Offset %lu Length %lu\n", Status,
  12.            This->LeadingEdgeStreamPointer.Offset,
  13.            This->LeadingEdgeStreamPointer.Length);
  14.     break;
  15.   } while(This->IrpCount);
  16. }
  17.  
  18. This suspicious code was found in ReactOS project by PVS-Studio static code analyzer.
  19. Warning message is:
  20. V612 An unconditional 'break' within a loop. pin.c 1839
  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