PVS-StudioWarnings

PVS-Studio warning V530 for Synergy

Nov 25th, 2014
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.50 KB | None | 0 0
  1. typedef std::list<CIpcClientProxy*> CClientList;
  2. CClientList      m_clients;
  3.  
  4. CIpcServer::~CIpcServer()
  5. {
  6.   ....
  7.   m_clients.empty();
  8.   ....
  9. }
  10.  
  11. This suspicious code was found in Synergy project by PVS-Studio static code analyzer.
  12. Warning message is:
  13. V530 The return value of function 'empty' is required to be utilized. cipcserver.cpp 69
  14.  
  15. 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