PVS-StudioWarnings

PVS-Studio warning V614 for MPC-HC

Nov 17th, 2014
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.60 KB | None | 0 0
  1. void CSyncAP::RenderThread()
  2. {
  3.   ....
  4.   REFERENCE_TIME rtRefClockTimeNow;
  5.   if (m_pRefClock) {
  6.     m_pRefClock->GetTime(&rtRefClockTimeNow);
  7.   }
  8.   LONG lLastVsyncTime =
  9.     (LONG)((m_llEstVBlankTime - rtRefClockTimeNow) / 10000);
  10.   ....
  11. }
  12.  
  13. This suspicious code was found in MPC-HC project by PVS-Studio static code analyzer.
  14. Warning message is:
  15. V614 Potentially uninitialized variable 'rtRefClockTimeNow' used. syncrenderer.cpp 3604
  16.  
  17. 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