PVS-StudioWarnings

PVS-Studio warning V607 for Boost

Nov 12th, 2014
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. void set_duration_style(duration_style style)
  2. {
  3.   duration_style_ == style;
  4. }
  5.  
  6. This suspicious code was found in Boost project by PVS-Studio static code analyzer.
  7. Warning message is:
  8. V607 Ownerless expression 'duration_style_ == style'. base_formatter.hpp 51
  9.  
  10. 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