PVS-StudioWarnings

PVS-Studio warning V570 for Quake3

Nov 27th, 2014
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.50 KB | None | 0 0
  1. void CG_ParticleSnowFlurry (qhandle_t pshader, centity_t *cent)
  2. {
  3.   ...
  4.   p->org[0] = p->org[0];
  5.   p->org[1] = p->org[1];
  6.   p->org[2] = p->org[2];
  7.   ...
  8. }
  9.  
  10. This suspicious code was found in Quake3 project by PVS-Studio static code analyzer.
  11. Warning message is:
  12. V570 The 'p->org[0]' variable is assigned to itself. cgame cg_marks.c 1267
  13.  
  14. 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