PVS-StudioWarnings

PVS-Studio warning V549 for CryEngineSDK

Nov 11th, 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 bool operator != (const SEfResTexture &m) const
  2. {
  3.   if (stricmp(m_Name.c_str(), m_Name.c_str()) != 0 ||
  4.       m_TexFlags != m.m_TexFlags ||
  5.       m_bUTile != m.m_bUTile ||
  6.       m_bVTile != m.m_bVTile ||
  7.       m_Filter != m.m_Filter ||
  8.       m_Ext != m.m_Ext ||
  9.       m_Sampler != m.m_Sampler)
  10.     return true;
  11.   return false;
  12. }
  13.  
  14. This suspicious code was found in CryEngineSDK project by PVS-Studio static code analyzer.
  15. Warning message is:
  16. V549 The first argument of 'stricmp' function is equal to the second argument. ishader.h 2089
  17.  
  18. 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