PVS-StudioWarnings

PVS-Studio warning V517 for Quake3

Nov 11th, 2014
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.60 KB | None | 0 0
  1. void CMainFrame::OnClipSelected()
  2. {
  3.   ...
  4.   if (g_bPatchBendMode)
  5.     Patch_BendHandleENTER();
  6.   else if (g_bPatchBendMode)
  7.     Patch_InsDelHandleENTER();
  8.   ...
  9. }
  10.  
  11. This suspicious code was found in Quake3 project by PVS-Studio static code analyzer.
  12. Warning message is:
  13. V517 The use of 'if (A) {...} else if (A) {...}' pattern was detected. There is a probability of logical error presence. Check lines: 3333, 3335. Radiant mainfrm.cpp 3333
  14.  
  15. 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