PVS-StudioWarnings

PVS-Studio warning V570 for Virtualdub

Nov 20th, 2014
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.74 KB | None | 0 0
  1. void VDVideoCompressorVCM::Start(const void *inputFormat,
  2.                                  uint32 inputFormatSize,
  3.                                  const void *outputFormat,
  4.                                  uint32 outputFormatSize,
  5.                                  const VDFraction& frameRate,
  6.                                  VDPosition frameCount)
  7. {
  8.   this->hic    = hic;
  9.   ....
  10. }
  11.  
  12. This suspicious code was found in Virtualdub project by PVS-Studio static code analyzer.
  13. Warning message is:
  14. V570 The 'this->hic' variable is assigned to itself. Riza w32videocodecpack.cpp 253
  15.  
  16. 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