LineIdCWESeverityMessage
src/cafe-calc-cmd.c
71variableScope398styleThe scope of the variable 'line' can be reduced.
src/cafe-calc.c
124variableScope398styleThe scope of the variable 'arg' can be reduced.
src/currency-manager.c
386constVariablePointer398styleVariable 'value' can be declared as pointer to const
src/currency.c
69constParameterPointer398styleParameter 'value' can be declared as pointer to const
src/financial.c
18constParameterPointer398styleParameter 'fv' can be declared as pointer to const
18constParameterPointer398styleParameter 'pv' can be declared as pointer to const
18constParameterPointer398styleParameter 'pint' can be declared as pointer to const
38constParameterPointer398styleParameter 'period' can be declared as pointer to const
38constParameterPointer398styleParameter 'cost' can be declared as pointer to const
38constParameterPointer398styleParameter 'life' can be declared as pointer to const
77constParameterPointer398styleParameter 'pint' can be declared as pointer to const
77constParameterPointer398styleParameter 'n' can be declared as pointer to const
77constParameterPointer398styleParameter 'pmt' can be declared as pointer to const
98constParameterPointer398styleParameter 'margin' can be declared as pointer to const
98constParameterPointer398styleParameter 'cost' can be declared as pointer to const
116constParameterPointer398styleParameter 'pint' can be declared as pointer to const
116constParameterPointer398styleParameter 'n' can be declared as pointer to const
116constParameterPointer398styleParameter 'prin' can be declared as pointer to const
139constParameterPointer398styleParameter 'pint' can be declared as pointer to const
139constParameterPointer398styleParameter 'n' can be declared as pointer to const
139constParameterPointer398styleParameter 'pmt' can be declared as pointer to const
162constParameterPointer398styleParameter 'fv' can be declared as pointer to const
162constParameterPointer398styleParameter 'pv' can be declared as pointer to const
162constParameterPointer398styleParameter 'n' can be declared as pointer to const
183constParameterPointer398styleParameter 'cost' can be declared as pointer to const
183constParameterPointer398styleParameter 'salvage' can be declared as pointer to const
183constParameterPointer398styleParameter 'life' can be declared as pointer to const
200constParameterPointer398styleParameter 'life' can be declared as pointer to const
200constParameterPointer398styleParameter 'period' can be declared as pointer to const
200constParameterPointer398styleParameter 'cost' can be declared as pointer to const
200constParameterPointer398styleParameter 'salvage' can be declared as pointer to const
227constParameterPointer398styleParameter 'pint' can be declared as pointer to const
227constParameterPointer398styleParameter 'fv' can be declared as pointer to const
227constParameterPointer398styleParameter 'pmt' can be declared as pointer to const
src/lexer.c
34variableScope398styleThe scope of the variable 'count' can be reduced.
122unreadVariable563styleVariable 'type' is assigned a value that is never used.
530variableScope398styleThe scope of the variable 'token' can be reduced.
src/math-buttons.c
89unusedStructMember563stylestruct member 'ButtonData::class' is never used.
393shadowVariable398styleLocal variable 'label' shadows outer variable
473unreadVariable563styleVariable 'valid' is assigned a value that is never used.
src/math-converter.c
145shadowVariable398styleLocal variable 'iter' shadows outer variable
src/math-equation.c
434variableScope398styleThe scope of the variable 'equation' can be reduced.
873variableScope398styleThe scope of the variable 'text' can be reduced.
src/math-preferences.c
161unreadVariable563styleVariable 'valid' is assigned a value that is never used.
src/math-variables.c
91constVariablePointer398styleVariable 'value' can be declared as pointer to const
src/mp-convert.c
33variableScope398styleThe scope of the variable 'k' can be reduced.
106variableScope398styleThe scope of the variable 'k' can be reduced.
187knownConditionTrueFalse571styleCondition 'x>0' is always true
461variableScope398styleThe scope of the variable 'dz2' can be reduced.
560arrayIndexOutOfBounds788errorArray 'digits[0][10]' accessed at index digits[*][10], which is out of bounds.
593invalidscanf119warningsscanf() without field width limits can crash with huge input data.
622variableScope398styleThe scope of the variable 'numerators' can be reduced.
622constVariable398styleVariable 'numerators' can be declared as const array
623variableScope398styleThe scope of the variable 'denominators' can be reduced.
623constVariable398styleVariable 'denominators' can be declared as const array
706knownConditionTrueFalse398styleThe comparison 'multiplier != 0' is always false.
src/mp-equation.c
293variableScope398styleThe scope of the variable 'err' can be reduced.
src/mp-serializer.c
146shadowVariable398styleLocal variable 'digits' shadows outer variable
204knownConditionTrueFalse570styleCondition 'strcmp(s->str,"+0")==0' is always false
206knownConditionTrueFalse571styleCondition 'strcmp(s->str,"0")!=0' is always true
336knownConditionTrueFalse570styleCondition 'strcmp(s->str,"+0")==0' is always false
338knownConditionTrueFalse571styleCondition 'strcmp(s->str,"0")!=0' is always true
src/mp-trigonometric.c
364shadowVariable398styleLocal variable 'pi' shadows outer variable
src/mp.c
256shadowVariable398styleLocal variable 'i' shadows outer variable
261knownConditionTrueFalse571styleCondition 'i>0' is always true
1233variableScope398styleThe scope of the variable 'e' can be reduced.
1234variableScope398styleThe scope of the variable 'rx' can be reduced.
1234variableScope398styleThe scope of the variable 'rlx' can be reduced.
1572knownConditionTrueFalse570styleCondition 'c<0' is always false
src/parser.c
73constParameterPointer398styleParameter 'state' can be declared as pointer to const
80constParameterPointer398styleParameter 'state' can be declared as pointer to const
106constParameterPointer398styleParameter 'left' can be declared as pointer to const
106constParameterPointer398styleParameter 'right' can be declared as pointer to const
325variableScope398styleThe scope of the variable 'c' can be reduced.
326variableScope398styleThe scope of the variable 'buffer' can be reduced.
538variableScope398styleThe scope of the variable 'token_old' can be reduced.
539variableScope398styleThe scope of the variable 'node' can be reduced.
1161variableScope398styleThe scope of the variable 'token_old' can be reduced.
1162variableScope398styleThe scope of the variable 'node' can be reduced.
1206variableScope398styleThe scope of the variable 'node' can be reduced.
src/parserfunc.c
171variableScope398styleThe scope of the variable 'c' can be reduced.
172variableScope398styleThe scope of the variable 'buffer' can be reduced.
228variableScope398styleThe scope of the variable 'c' can be reduced.
229variableScope398styleThe scope of the variable 'buffer' can be reduced.
src/unit-category.c
107constParameterPointer398styleParameter 'category' can be declared as pointer to const
src/unit-manager.c
196variableScope398styleThe scope of the variable 'u' can be reduced.
216variableScope398styleThe scope of the variable 'u' can be reduced.
src/unit.c
111constVariablePointer398styleVariable 'x' can be declared as pointer to const
184constParameterPointer398styleParameter 'x' can be declared as pointer to const
src/unittest.c
81variableScope398styleThe scope of the variable 'result_str' can be reduced.
181redundantAssignment563styleVariable 'options.base' is reassigned a value before the old one has been used.