PVS-StudioWarnings

PVS-Studio warning V523 for blender

Nov 20th, 2014
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.89 KB | None | 0 0
  1. EIGEN_DONT_INLINE static void run(....)
  2. {
  3.   ...
  4.   if ((size_t(lhs0+alignedStart)%sizeof(LhsPacket))==0)
  5.     for (Index i = alignedStart;i<alignedSize;i+=ResPacketSize)
  6.       pstore(&res[i],
  7.              pcj.pmadd(ploadu<LhsPacket>(&lhs0[i]),
  8.                        ptmp0, pload<ResPacket>(&res[i])));
  9.   else
  10.     for (Index i = alignedStart;i<alignedSize;i+=ResPacketSize)
  11.       pstore(&res[i],
  12.              pcj.pmadd(ploadu<LhsPacket>(&lhs0[i]),
  13.                        ptmp0, pload<ResPacket>(&res[i])));
  14.   ...
  15. }
  16.  
  17. This suspicious code was found in blender project by PVS-Studio static code analyzer.
  18. Warning message is:
  19. V523 The 'then' statement is equivalent to the 'else' statement. bf_ikplugin generalmatrixvector.h 268
  20.  
  21. 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