Advertisement
PVS-StudioWarnings

PVS-Studio warning V603 for OpenCOLLADA

Nov 26th, 2014
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.64 KB | None | 0 0
  1. struct ParserString : public UnionString
  2. {
  3.   ParserString()
  4.   {
  5.     UnionString::str = 0;
  6.     UnionString::length = 0;
  7.   }
  8.  
  9.   ParserString(const int& val)
  10.   {
  11.     ParserString();
  12.   }
  13. };
  14.  
  15. This suspicious code was found in OpenCOLLADA project by PVS-Studio static code analyzer.
  16. Warning message is:
  17. V603 The object was created but it is not being used. If you wish to call constructor, 'this->ParserString::ParserString(....)' should be used. generatedsaxparsertypes.h 56
  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