Advertisement
PVS-StudioWarnings

PVS-Studio warning V519 for yasm

Nov 20th, 2014
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.63 KB | None | 0 0
  1. static int
  2. coff_helper_gasflags(....)
  3. {
  4.   ...
  5.   case 'd':
  6.       datasect = 1;
  7.       load = 1;
  8.       readonly = 0;
  9.   case 'x':
  10.       code = 1;
  11.       load = 1;
  12.       break;
  13.   ...
  14. }
  15.  
  16. The break operator is missing.
  17.  
  18. This suspicious code was found in yasm project by PVS-Studio static code analyzer.
  19. Warning message is:
  20. V519 The 'load' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 1346, 1350. yasm coff-objfmt.c 1350
  21.  
  22. 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