PVS-StudioWarnings

PVS-Studio warning V519 for Firefox

Nov 17th, 2014
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.55 KB | None | 0 0
  1. nsresult
  2. PuppetWidget::DispatchPaintEvent()
  3. {
  4.   ...
  5.   event.refPoint.x = dirtyRect.x;
  6.   event.refPoint.x = dirtyRect.y;
  7.   ...
  8. }
  9.  
  10. This suspicious code was found in Firefox project by PVS-Studio static code analyzer.
  11. Warning message is:
  12. V519 The 'event.refPoint.x' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 545, 546. puppetwidget.cpp 546
  13.  
  14. 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