Advertisement
PVS-StudioWarnings

PVS-Studio warning V669 for WinMerge

Nov 27th, 2014
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.67 KB | None | 0 0
  1. bool CDirView::OpenOneItem(
  2.   UINT_PTR pos1, DIFFITEM **di1, DIFFITEM **di2,
  3.   String &path1, String &path2, int & sel1, bool & isDir)
  4. {
  5.   ....
  6.   // Variable 'sel1' don't modified.
  7.   ....
  8. }
  9.  
  10. This suspicious code was found in WinMerge project by PVS-Studio static code analyzer.
  11. Warning message is:
  12. V669 The 'sel1' argument is a non-constant reference. The analyzer is unable to determine the position at which this argument is being modified. It is possible that the function contains an error. dirview.cpp 1322
  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
Advertisement