PVS-StudioWarnings

PVS-Studio warning V560 for DeSmuME

Nov 11th, 2014
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.57 KB | None | 0 0
  1. INLINE static int check_breaks_gdb(....) {
  2.   int found_break = 0;
  3.   ...
  4.   while ( bpoint != NULL && !found_break) {
  5.     ...
  6.     found_break not used inside loop
  7.     ...
  8.   }
  9.   return found_break;
  10. }
  11.  
  12. This suspicious code was found in DeSmuME project by PVS-Studio static code analyzer.
  13. Warning message is:
  14. V560 A part of conditional expression is always true: !found_break. DeSmuME_VS2005 gdbstub.cpp 1002
  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