PVS-StudioWarnings

PVS-Studio warning V591 for Quake3

Nov 10th, 2014
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. static ID_INLINE int BigLong(int l)
  2. { LongSwap(l); }
  3.  
  4. Need: { return LongSwap(l); }
  5.  
  6. This suspicious code was found in Quake3 project by PVS-Studio static code analyzer.
  7. Warning message is:
  8. V591 Non-void function should return a value. botlib q_shared.h 155
  9.  
  10. 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