Advertisement
PVS-StudioWarnings

PVS-Studio warning V525 for Source SDK

Nov 25th, 2014
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.71 KB | None | 0 0
  1. inline void SetX( float val );
  2. inline void SetY( float val );
  3. inline void SetZ( float val );
  4. inline void SetW( float val );
  5.  
  6. inline void Init( float ix=0, float iy=0,
  7.                   float iz=0, float iw = 0 )
  8. {
  9.   SetX( ix );
  10.   SetY( iy );
  11.   SetZ( iz );
  12.   SetZ( iw );
  13. }
  14.  
  15. This suspicious code was found in Source SDK project by PVS-Studio static code analyzer.
  16. Warning message is:
  17. V525 The code containing the collection of similar blocks. Check items 'SetX', 'SetY', 'SetZ', 'SetZ' in lines 455, 456, 457, 458. Client (HL2) networkvar.h 455
  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
Advertisement