| Line | Id | Severity | Message |
|---|
| tk/mem.c |
| 157 | variableScope | style | The scope of the variable 'len' can be reduced. |
| 821 | variableScope | style | The scope of the variable 'len' can be reduced. |
| 128 | constStatement | warning | Redundant code: Found a statement that begins with numeric constant |
| 432 | sizeofwithnumericparameter | warning | It is unusual to use constant value with sizeof. For example, sizeof(10) returns 4 (in 32-bit systems) or 8 (in 64-bit systems) instead of 10. sizeof('A') and sizeof(char) can return different results. |
| 512 | constStatement | warning | Redundant code: Found a statement that begins with numeric constant |
| 577 | constStatement | warning | Redundant code: Found a statement that begins with numeric constant |
| 623 | AssignmentIntegerToAddress | portability | Assigning an integer (int/long/etc) to a pointer is not portable across different platforms and compilers. For example in 32-bit Windows and linux they are same width, but in 64-bit Windows and linux they are of different width. In worst case you end up assigning 32-bit integer to 64-bit pointer. The safe way is to always assign address to pointer. |
| statement.cpp |
| 2077 | unreadVariable | style | Variable 'tret' is assigned a value that is never used |
| 2478 | unreadVariable | style | Variable 'e' is assigned a value that is never used |
| backend/bcomplex.c |
| 67 | variableScope | style | The scope of the variable 'x' can be reduced. |
| 67 | variableScope | style | The scope of the variable 'y' can be reduced. |
| 67 | variableScope | style | The scope of the variable 'w' can be reduced. |
| 67 | variableScope | style | The scope of the variable 'r' can be reduced. |
| 162 | variableScope | style | The scope of the variable 'x' can be reduced. |
| 162 | variableScope | style | The scope of the variable 'y' can be reduced. |
| 162 | variableScope | style | The scope of the variable 'w' can be reduced. |
| 162 | variableScope | style | The scope of the variable 'r' can be reduced. |
| 257 | variableScope | style | The scope of the variable 'x' can be reduced. |
| 257 | variableScope | style | The scope of the variable 'y' can be reduced. |
| 257 | variableScope | style | The scope of the variable 'w' can be reduced. |
| 257 | variableScope | style | The scope of the variable 'r' can be reduced. |
| init.cpp |
| 78 | uninitMemberVar | warning | Member variable 'VoidInitializer::type' is not initialized in the constructor. |
| 430 | uninitMemberVar | warning | Member variable 'ArrayInitializer::type' is not initialized in the constructor. |
| struct.cpp |
| 150 | unreadVariable | style | Variable 'psv' is assigned a value that is never used |
| 28 | uninitMemberVar | warning | Member variable 'AggregateDeclaration::type' is not initialized in the constructor. |
| 28 | uninitMemberVar | warning | Member variable 'AggregateDeclaration::attributes' is not initialized in the constructor. |
| libomf.cpp |
| 1002 | unusedStructMember | style | struct or union member 'Libheader::filler' is never used |
| 269 | unreadVariable | style | Variable 'result' is assigned a value that is never used |
| 972 | memleakOnRealloc | error | Common realloc mistake: 'bucketsP' nulled but not freed upon failure |
| root/longdouble.c |
| 51 | unreadVariable | style | Variable 'old_cw' is assigned a value that is never used |
| irstate.h |
| 23 | unnecessaryForwardDeclaration | style | Struct 'elem' forward declaration unnecessary, already declared |
| builtin.cpp |
| 49 | unreadVariable | style | Variable 'FulongZulong' is assigned a value that is never used |
| constfold.cpp |
| 1566 | unreadVariable | style | Variable 'c' is assigned a value that is never used |
| 589 | memleak | error | Memory leak: r |
| 332 | unusedVariable | style | Unused variable: r |
| 403 | unusedVariable | style | Unused variable: r |
| mars.cpp |
| 1529 | variableScope | style | The scope of the variable 'wildcard' can be reduced. |
| 1529 | unreadVariable | style | Variable 'wildcard' is assigned a value that is never used |
| 54 | uninitMemberVar | warning | Member variable 'Global::path' is not initialized in the constructor. |
| 54 | uninitMemberVar | warning | Member variable 'Global::filePath' is not initialized in the constructor. |
| 54 | uninitMemberVar | warning | Member variable 'Global::structalign' is not initialized in the constructor. |
| 54 | uninitMemberVar | warning | Member variable 'Global::errors' is not initialized in the constructor. |
| 54 | uninitMemberVar | warning | Member variable 'Global::warnings' is not initialized in the constructor. |
| 54 | uninitMemberVar | warning | Member variable 'Global::gag' is not initialized in the constructor. |
| 54 | uninitMemberVar | warning | Member variable 'Global::gaggedErrors' is not initialized in the constructor. |
| 54 | uninitMemberVar | warning | Member variable 'Global::speculativeGag' is not initialized in the constructor. |
| root/port.c |
| 135 | invalidPointerCast | warning | Casting between integer* and double* which have an incompatible binary data representation |
| backend/os.c |
| 712 | variableScope | style | The scope of the variable 'i' can be reduced. |
| test/UTFTest.cpp |
| 330 | noConstructor | style | The class 'UTFDecodeTest 'does not have a constructor but it has attributes. The attributes are not initialized which may cause bugs or undefined behavior. |
| scope.cpp |
| 48 | uninitMemberVar | warning | Member variable 'Scope::attributes' is not initialized in the constructor. |
| lexer.cpp |
| 2174 | duplicateIf | style | Finding the same expression more than once is suspicious and might indicate a cut and paste or logic error. Please examine this code carefully to determine if it is correct. |
| 2189 | duplicateIf | style | Finding the same expression more than once is suspicious and might indicate a cut and paste or logic error. Please examine this code carefully to determine if it is correct. |
| 2369 | unreadVariable | style | Variable 'd' is assigned a value that is never used |
| 2387 | unreadVariable | style | Variable 'd' is assigned a value that is never used |
| 2174 | multiCondition | style | 'else if' condition matches previous condition at line 2172 |
| 2176 | multiCondition | style | 'else if' condition matches previous condition at line 2172 |
| 2176 | multiCondition | style | 'else if' condition matches previous condition at line 2174 |
| 2189 | multiCondition | style | 'else if' condition matches previous condition at line 2185 |
| class.cpp |
| 659 | unreadVariable | style | Variable 'isunion' is assigned a value that is never used |
| tk/list.c |
| 76 | syntaxError | error | syntax error |
| root/array.c |
| 48 | uninitMemberVar | warning | Member variable 'Array::dim' is not initialized in the constructor. |
| 48 | uninitMemberVar | warning | Member variable 'Array::smallarray' is not initialized in the constructor. |
| declaration.cpp |
| 302 | unreadVariable | style | Variable 'savedtype' is assigned a value that is never used |
| 29 | uninitMemberVar | warning | Member variable 'Declaration::type' is not initialized in the constructor. |
| 29 | uninitMemberVar | warning | Member variable 'Declaration::attributes' is not initialized in the constructor. |
| template.cpp |
| 5731 | variableScope | style | The scope of the variable 'i' can be reduced. |
| 5918 | variableScope | style | The scope of the variable 'i' can be reduced. |
| 963 | unreadVariable | style | Variable 'wildmatch' is assigned a value that is never used |
| 1726 | unreadVariable | style | Variable 'nmatches' is assigned a value that is never used |
| 3046 | unreadVariable | style | Variable 'v1' is assigned a value that is never used |
| 3047 | unreadVariable | style | Variable 'v2' is assigned a value that is never used |
| 5047 | unreadVariable | style | Variable 'dim' is assigned a value that is never used |
| 5955 | unreadVariable | style | Variable 'offset' is assigned a value that is never used |
| 5956 | unreadVariable | style | Variable 'sc' is assigned a value that is never used |
| 4382 | uninitMemberVar | warning | Member variable 'TemplateInstance::objFileModule' is not initialized in the constructor. |
| 4410 | uninitMemberVar | warning | Member variable 'TemplateInstance::objFileModule' is not initialized in the constructor. |
| optimize.cpp |
| 133 | nullPointer | error | Possible null pointer dereference: e |
| tk/vec.c |
| 134 | variableScope | style | The scope of the variable 'dim' can be reduced. |
| 135 | variableScope | style | The scope of the variable 'nbytes' can be reduced. |
| 346 | variableScope | style | The scope of the variable 'starv' can be reduced. |
| 348 | variableScope | style | The scope of the variable 'bit' can be reduced. |
| 60 | constStatement | warning | Redundant code: Found a statement that begins with numeric constant |
| intrange.h |
| 33 | uninitMemberVar | warning | Member variable 'SignExtendedNumber::negative' is not initialized in the constructor. |
| backend/html.c |
| 617 | variableScope | style | The scope of the variable 'v' can be reduced. |
| 618 | variableScope | style | The scope of the variable 'hex' can be reduced. |
| tk/filespec.c |
| 198 | variableScope | style | The scope of the variable 'len' can be reduced. |
| argtypes.cpp |
| 317 | unreadVariable | style | Variable 'sz1' is assigned a value that is never used |
| 318 | unreadVariable | style | Variable 'sz2' is assigned a value that is never used |
| expression.cpp |
| 960 | nullPointer | error | Possible null pointer dereference: c - otherwise it is redundant to check if c is null at line 970 |
| 2119 | duplicateIf | style | Finding the same expression more than once is suspicious and might indicate a cut and paste or logic error. Please examine this code carefully to determine if it is correct. |
| 7554 | unreadVariable | style | Variable 'ex' is assigned a value that is never used |
| 7566 | unreadVariable | style | Variable 'istemp' is assigned a value that is never used |
| 9865 | unreadVariable | style | Variable 'taa' is assigned a value that is never used |
| 10042 | unreadVariable | style | Variable 'id' is assigned a value that is never used |
| 10134 | unreadVariable | style | Variable 'id' is assigned a value that is never used |
| 11434 | unreadVariable | style | Variable 'wantSqrt' is assigned a value that is never used |
| 11941 | unreadVariable | style | Variable 'eb1' is assigned a value that is never used |
| 11942 | unreadVariable | style | Variable 'eb2' is assigned a value that is never used |
| 1336 | uninitMemberVar | warning | Member variable 'Expression::type' is not initialized in the constructor. |
| 2635 | uninitMemberVar | warning | Member variable 'IdentifierExp::var' is not initialized in the constructor. |
| 7403 | uninitMemberVar | warning | Member variable 'CallExp::f' is not initialized in the constructor. |
| 7409 | uninitMemberVar | warning | Member variable 'CallExp::f' is not initialized in the constructor. |
| 7420 | uninitMemberVar | warning | Member variable 'CallExp::f' is not initialized in the constructor. |
| 2119 | multiCondition | style | 'else if' condition matches previous condition at line 2117 |
| 3974 | memleak | error | Memory leak: e |
| 9802 | uninitvar | error | Uninitialized variable: length |
| enum.cpp |
| 24 | uninitMemberVar | warning | Member variable 'EnumDeclaration::type' is not initialized in the constructor. |
| 24 | uninitMemberVar | warning | Member variable 'EnumDeclaration::attributes' is not initialized in the constructor. |
| parse.cpp |
| 78 | variableScope | style | The scope of the variable 'safe' can be reduced. |
| 4508 | unreadVariable | style | Variable 'haveId' is assigned a value that is never used |
| 5688 | unreadVariable | style | Variable 'tempinst' is assigned a value that is never used |
| dsymbol.cpp |
| 1191 | uninitMemberVar | warning | Member variable 'ArrayScopeSymbol::type' is not initialized in the constructor. |
| 1201 | uninitMemberVar | warning | Member variable 'ArrayScopeSymbol::type' is not initialized in the constructor. |
| 1210 | uninitMemberVar | warning | Member variable 'ArrayScopeSymbol::type' is not initialized in the constructor. |
| module.cpp |
| 1028 | unassignedVariable | style | Variable 'tmp' is not assigned a value |
| root/root.c |
| 337 | variableScope | style | The scope of the variable 'c' can be reduced. |
| 699 | variableScope | style | The scope of the variable 'len' can be reduced. |
| 700 | variableScope | style | The scope of the variable 'extlen' can be reduced. |
| 347 | unreadVariable | style | Variable 'instring' is assigned a value that is never used |
| 174 | thisSubtraction | warning | Suspicious pointer subtraction |
| func.cpp |
| 124 | variableScope | style | The scope of the variable 'doesoverride' can be reduced. |
| 2309 | variableScope | style | The scope of the variable 'match' can be reduced. |
| 123 | unusedVariable | style | Unused variable: pd |
| 375 | unusedVariable | style | Unused variable: ctor |
| 376 | unusedVariable | style | Unused variable: dtor |
| 377 | unusedVariable | style | Unused variable: inv |
| 2501 | unreadVariable | style | Variable 'ngparams' is assigned a value that is never used |
| 2502 | unreadVariable | style | Variable 'match' is assigned a value that is never used |
| 3770 | unreadVariable | style | Variable 'cd' is assigned a value that is never used |
| root/stringtable.h |
| 52 | noConstructor | style | The struct 'StringTable 'does not have a constructor but it has attributes. The attributes are not initialized which may cause bugs or undefined behavior. |
| version.cpp |
| 28 | uninitMemberVar | warning | Member variable 'DebugSymbol::level' is not initialized in the constructor. |
| 108 | uninitMemberVar | warning | Member variable 'VersionSymbol::level' is not initialized in the constructor. |
| mtype.cpp |
| 5438 | memsetClass | error | Using 'memcpy' on struct that contains a virtual method |
| 5444 | memsetClass | error | Using 'memcpy' on struct that contains a virtual method |
| 862 | nullPointer | error | Possible null pointer dereference: tn |
| interpret.cpp |
| 4889 | variableHidingEnum | style | Variable 'TOKreserved' hides enumerator with same name |
| 4260 | duplicateBranch | style | Finding the same code for an if branch and an else branch is suspicious and might indicate a cut and paste or logic error. Please examine this code carefully to determine if it is correct. |
| 4889 | duplicateBreak | style | The second of the two statements can never be executed, and so should be removed. |
| 6533 | unreadVariable | style | Variable 'keyType' is assigned a value that is never used |
| 2383 | memleak | error | Memory leak: ex |