Advertisement
PVS-StudioWarnings

PVS-Studio warning V530 for ITK

Nov 25th, 2014
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.57 KB | None | 0 0
  1. std::vector<SizeValueType>   m_Dimensions;
  2.  
  3. template< typename TInputVideoStream >
  4. bool
  5. VideoFileWriter< TInputVideoStream >
  6. ::InitializeOutputParameters()
  7. {
  8.   ....
  9.   m_Dimensions.empty();
  10.   ....
  11. }
  12.  
  13. This suspicious code was found in ITK project by PVS-Studio static code analyzer.
  14. Warning message is:
  15. V530 The return value of function 'empty' is required to be utilized. itkvideofilewriter.hxx 334
  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
Advertisement