LineIdCWESeverityMessage
missingIncludeinformationCppcheck cannot find all the include files (use --check-config for details)
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/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
873variableScope398styleThe scope of the variable 'text' can be reduced.
src/math-preferences.c
161unreadVariable563styleVariable 'valid' is assigned a value that is never used.
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.
623variableScope398styleThe scope of the variable 'denominators' can be reduced.
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
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
107constParameter398styleParameter '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/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.