Advertisement
PVS-StudioWarnings

PVS-Studio warning V517 for CryEngineSDK

Nov 27th, 2014
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.70 KB | None | 0 0
  1. #define MovementTransitionsLog if (false) CryLog
  2.  
  3. STransitionSelectionParams::STransitionSelectionParams(....)
  4. {
  5.   ....
  6.   if (!(allowedTransitionFlags & (1<<eTT_Start)))
  7.     MovementTransitionsLog(....);
  8.   else
  9.     MovementTransitionsLog(....);
  10.   ....
  11. }
  12.  
  13. This suspicious code was found in CryEngineSDK project by PVS-Studio static code analyzer.
  14. Warning message is:
  15. V517 The use of 'if (A) {...} else if (A) {...}' pattern was detected. There is a probability of logical error presence. Check lines: 610, 612. movementtransitions.cpp 610
  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