PVS-StudioWarnings

PVS-Studio warning V563 for BCmenu

Nov 12th, 2014
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.56 KB | None | 0 0
  1. void BCMenu::InsertSpaces(void)
  2. {
  3.   if(IsLunaMenuStyle())
  4.     if(!xp_space_accelerators)return;
  5.   else
  6.     if(!original_space_accelerators)return;
  7.   ...
  8. }
  9.  
  10. Most likely {} are missing.
  11.  
  12. This suspicious code was found in BCmenu project by PVS-Studio static code analyzer.
  13. Warning message is:
  14. V563 It is possible that this 'else' branch must apply to the previous 'if' statement. fire bcmenu.cpp 1853
  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