LineIdSeverityMessage
tk/mem.c
157variableScopestyleThe scope of the variable 'len' can be reduced.
821variableScopestyleThe scope of the variable 'len' can be reduced.
128constStatementwarningRedundant code: Found a statement that begins with numeric constant
432sizeofwithnumericparameterwarningIt 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.
512constStatementwarningRedundant code: Found a statement that begins with numeric constant
577constStatementwarningRedundant code: Found a statement that begins with numeric constant
623AssignmentIntegerToAddressportabilityAssigning 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
2077unreadVariablestyleVariable 'tret' is assigned a value that is never used
2478unreadVariablestyleVariable 'e' is assigned a value that is never used
backend/bcomplex.c
67variableScopestyleThe scope of the variable 'x' can be reduced.
67variableScopestyleThe scope of the variable 'y' can be reduced.
67variableScopestyleThe scope of the variable 'w' can be reduced.
67variableScopestyleThe scope of the variable 'r' can be reduced.
162variableScopestyleThe scope of the variable 'x' can be reduced.
162variableScopestyleThe scope of the variable 'y' can be reduced.
162variableScopestyleThe scope of the variable 'w' can be reduced.
162variableScopestyleThe scope of the variable 'r' can be reduced.
257variableScopestyleThe scope of the variable 'x' can be reduced.
257variableScopestyleThe scope of the variable 'y' can be reduced.
257variableScopestyleThe scope of the variable 'w' can be reduced.
257variableScopestyleThe scope of the variable 'r' can be reduced.
init.cpp
78uninitMemberVarwarningMember variable 'VoidInitializer::type' is not initialized in the constructor.
430uninitMemberVarwarningMember variable 'ArrayInitializer::type' is not initialized in the constructor.
struct.cpp
150unreadVariablestyleVariable 'psv' is assigned a value that is never used
28uninitMemberVarwarningMember variable 'AggregateDeclaration::type' is not initialized in the constructor.
28uninitMemberVarwarningMember variable 'AggregateDeclaration::attributes' is not initialized in the constructor.
libomf.cpp
1002unusedStructMemberstylestruct or union member 'Libheader::filler' is never used
269unreadVariablestyleVariable 'result' is assigned a value that is never used
972memleakOnReallocerrorCommon realloc mistake: 'bucketsP' nulled but not freed upon failure
root/longdouble.c
51unreadVariablestyleVariable 'old_cw' is assigned a value that is never used
irstate.h
23unnecessaryForwardDeclarationstyleStruct 'elem' forward declaration unnecessary, already declared
builtin.cpp
49unreadVariablestyleVariable 'FulongZulong' is assigned a value that is never used
constfold.cpp
1566unreadVariablestyleVariable 'c' is assigned a value that is never used
589memleakerrorMemory leak: r
332unusedVariablestyleUnused variable: r
403unusedVariablestyleUnused variable: r
mars.cpp
1529variableScopestyleThe scope of the variable 'wildcard' can be reduced.
1529unreadVariablestyleVariable 'wildcard' is assigned a value that is never used
54uninitMemberVarwarningMember variable 'Global::path' is not initialized in the constructor.
54uninitMemberVarwarningMember variable 'Global::filePath' is not initialized in the constructor.
54uninitMemberVarwarningMember variable 'Global::structalign' is not initialized in the constructor.
54uninitMemberVarwarningMember variable 'Global::errors' is not initialized in the constructor.
54uninitMemberVarwarningMember variable 'Global::warnings' is not initialized in the constructor.
54uninitMemberVarwarningMember variable 'Global::gag' is not initialized in the constructor.
54uninitMemberVarwarningMember variable 'Global::gaggedErrors' is not initialized in the constructor.
54uninitMemberVarwarningMember variable 'Global::speculativeGag' is not initialized in the constructor.
root/port.c
135invalidPointerCastwarningCasting between integer* and double* which have an incompatible binary data representation
backend/os.c
712variableScopestyleThe scope of the variable 'i' can be reduced.
test/UTFTest.cpp
330noConstructorstyleThe 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
48uninitMemberVarwarningMember variable 'Scope::attributes' is not initialized in the constructor.
lexer.cpp
2174duplicateIfstyleFinding 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.
2189duplicateIfstyleFinding 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.
2369unreadVariablestyleVariable 'd' is assigned a value that is never used
2387unreadVariablestyleVariable 'd' is assigned a value that is never used
2174multiConditionstyle'else if' condition matches previous condition at line 2172
2176multiConditionstyle'else if' condition matches previous condition at line 2172
2176multiConditionstyle'else if' condition matches previous condition at line 2174
2189multiConditionstyle'else if' condition matches previous condition at line 2185
class.cpp
659unreadVariablestyleVariable 'isunion' is assigned a value that is never used
tk/list.c
76syntaxErrorerrorsyntax error
root/array.c
48uninitMemberVarwarningMember variable 'Array::dim' is not initialized in the constructor.
48uninitMemberVarwarningMember variable 'Array::smallarray' is not initialized in the constructor.
declaration.cpp
302unreadVariablestyleVariable 'savedtype' is assigned a value that is never used
29uninitMemberVarwarningMember variable 'Declaration::type' is not initialized in the constructor.
29uninitMemberVarwarningMember variable 'Declaration::attributes' is not initialized in the constructor.
template.cpp
5731variableScopestyleThe scope of the variable 'i' can be reduced.
5918variableScopestyleThe scope of the variable 'i' can be reduced.
963unreadVariablestyleVariable 'wildmatch' is assigned a value that is never used
1726unreadVariablestyleVariable 'nmatches' is assigned a value that is never used
3046unreadVariablestyleVariable 'v1' is assigned a value that is never used
3047unreadVariablestyleVariable 'v2' is assigned a value that is never used
5047unreadVariablestyleVariable 'dim' is assigned a value that is never used
5955unreadVariablestyleVariable 'offset' is assigned a value that is never used
5956unreadVariablestyleVariable 'sc' is assigned a value that is never used
4382uninitMemberVarwarningMember variable 'TemplateInstance::objFileModule' is not initialized in the constructor.
4410uninitMemberVarwarningMember variable 'TemplateInstance::objFileModule' is not initialized in the constructor.
optimize.cpp
133nullPointererrorPossible null pointer dereference: e
tk/vec.c
134variableScopestyleThe scope of the variable 'dim' can be reduced.
135variableScopestyleThe scope of the variable 'nbytes' can be reduced.
346variableScopestyleThe scope of the variable 'starv' can be reduced.
348variableScopestyleThe scope of the variable 'bit' can be reduced.
60constStatementwarningRedundant code: Found a statement that begins with numeric constant
intrange.h
33uninitMemberVarwarningMember variable 'SignExtendedNumber::negative' is not initialized in the constructor.
backend/html.c
617variableScopestyleThe scope of the variable 'v' can be reduced.
618variableScopestyleThe scope of the variable 'hex' can be reduced.
tk/filespec.c
198variableScopestyleThe scope of the variable 'len' can be reduced.
argtypes.cpp
317unreadVariablestyleVariable 'sz1' is assigned a value that is never used
318unreadVariablestyleVariable 'sz2' is assigned a value that is never used
expression.cpp
960nullPointererrorPossible null pointer dereference: c - otherwise it is redundant to check if c is null at line 970
2119duplicateIfstyleFinding 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.
7554unreadVariablestyleVariable 'ex' is assigned a value that is never used
7566unreadVariablestyleVariable 'istemp' is assigned a value that is never used
9865unreadVariablestyleVariable 'taa' is assigned a value that is never used
10042unreadVariablestyleVariable 'id' is assigned a value that is never used
10134unreadVariablestyleVariable 'id' is assigned a value that is never used
11434unreadVariablestyleVariable 'wantSqrt' is assigned a value that is never used
11941unreadVariablestyleVariable 'eb1' is assigned a value that is never used
11942unreadVariablestyleVariable 'eb2' is assigned a value that is never used
1336uninitMemberVarwarningMember variable 'Expression::type' is not initialized in the constructor.
2635uninitMemberVarwarningMember variable 'IdentifierExp::var' is not initialized in the constructor.
7403uninitMemberVarwarningMember variable 'CallExp::f' is not initialized in the constructor.
7409uninitMemberVarwarningMember variable 'CallExp::f' is not initialized in the constructor.
7420uninitMemberVarwarningMember variable 'CallExp::f' is not initialized in the constructor.
2119multiConditionstyle'else if' condition matches previous condition at line 2117
3974memleakerrorMemory leak: e
9802uninitvarerrorUninitialized variable: length
enum.cpp
24uninitMemberVarwarningMember variable 'EnumDeclaration::type' is not initialized in the constructor.
24uninitMemberVarwarningMember variable 'EnumDeclaration::attributes' is not initialized in the constructor.
parse.cpp
78variableScopestyleThe scope of the variable 'safe' can be reduced.
4508unreadVariablestyleVariable 'haveId' is assigned a value that is never used
5688unreadVariablestyleVariable 'tempinst' is assigned a value that is never used
dsymbol.cpp
1191uninitMemberVarwarningMember variable 'ArrayScopeSymbol::type' is not initialized in the constructor.
1201uninitMemberVarwarningMember variable 'ArrayScopeSymbol::type' is not initialized in the constructor.
1210uninitMemberVarwarningMember variable 'ArrayScopeSymbol::type' is not initialized in the constructor.
module.cpp
1028unassignedVariablestyleVariable 'tmp' is not assigned a value
root/root.c
337variableScopestyleThe scope of the variable 'c' can be reduced.
699variableScopestyleThe scope of the variable 'len' can be reduced.
700variableScopestyleThe scope of the variable 'extlen' can be reduced.
347unreadVariablestyleVariable 'instring' is assigned a value that is never used
174thisSubtractionwarningSuspicious pointer subtraction
func.cpp
124variableScopestyleThe scope of the variable 'doesoverride' can be reduced.
2309variableScopestyleThe scope of the variable 'match' can be reduced.
123unusedVariablestyleUnused variable: pd
375unusedVariablestyleUnused variable: ctor
376unusedVariablestyleUnused variable: dtor
377unusedVariablestyleUnused variable: inv
2501unreadVariablestyleVariable 'ngparams' is assigned a value that is never used
2502unreadVariablestyleVariable 'match' is assigned a value that is never used
3770unreadVariablestyleVariable 'cd' is assigned a value that is never used
root/stringtable.h
52noConstructorstyleThe 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
28uninitMemberVarwarningMember variable 'DebugSymbol::level' is not initialized in the constructor.
108uninitMemberVarwarningMember variable 'VersionSymbol::level' is not initialized in the constructor.
mtype.cpp
5438memsetClasserrorUsing 'memcpy' on struct that contains a virtual method
5444memsetClasserrorUsing 'memcpy' on struct that contains a virtual method
862nullPointererrorPossible null pointer dereference: tn
interpret.cpp
4889variableHidingEnumstyleVariable 'TOKreserved' hides enumerator with same name
4260duplicateBranchstyleFinding 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.
4889duplicateBreakstyleThe second of the two statements can never be executed, and so should be removed.
6533unreadVariablestyleVariable 'keyType' is assigned a value that is never used
2383memleakerrorMemory leak: ex