PVS-StudioWarnings

PVS-Studio warning V607 for IPP Samples

Nov 17th, 2014
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.63 KB | None | 0 0
  1. AACStatus bsacdecSetNumChannels(Ipp32s channelConfiguration,
  2.                                 AACDec *state)
  3. {
  4.   state->com.m_channel_number = channelConfiguration;
  5.   if (channelConfiguration == 7) {
  6.     state->com.m_channel_number;    <<<---
  7.   }
  8.  
  9.   return AAC_OK;
  10. }
  11.  
  12. This suspicious code was found in IPP Samples project by PVS-Studio static code analyzer.
  13. Warning message is:
  14. V607 Ownerless expression 'state->com.m_channel_number'. aac_dec aac_dec_api_fp.c 1404
  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