PVS-StudioWarnings

PVS-Studio warning V546 for Boost

Nov 20th, 2014
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.63 KB | None | 0 0
  1. BOOST_UBLAS_INLINE
  2. compressed_matrix_view(const compressed_matrix_view& o) :
  3.   size1_(size1_), size2_(size2_),
  4.   nnz_(nnz_),
  5.   index1_data_(index1_data_),
  6.   index2_data_(index2_data_),
  7.   value_data_(value_data_)
  8. {}
  9.  
  10. Also: size2_, nnz_, index1_data_, index2_data_, value_data_.
  11.  
  12. This suspicious code was found in Boost project by PVS-Studio static code analyzer.
  13. Warning message is:
  14. V546 Member of a class is initialized by itself: 'size1_(size1_)'. sparse_view.hpp 193
  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