LineIdCWESeverityMessage
checkersReportinformationActive checkers: There was critical errors (use --checkers-report=<filename> to see details)
src/cafe-calc-cmd.c
71variableScope398styleThe scope of the variable 'line' can be reduced.
71constVariablePointer398styleVariable 'line' can be declared as pointer to const
src/cafe-calc.c
49constVariablePointer398styleVariable 'result_str' can be declared as pointer to const
124variableScope398styleThe scope of the variable 'arg' can be reduced.
124constVariablePointer398styleVariable 'arg' can be declared as pointer to const
src/currency-manager.c
144constParameterPointer398styleParameter 'manager' can be declared as pointer to const
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.
530constVariablePointer398styleVariable 'token' can be declared as pointer to const
src/math-buttons.c
407unknownMacroerrorThere is an unknown macro here somewhere. Configuration is required. If G_GINT64_MODIFIER is a macro then please configure it.
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.
1129constVariablePointer398styleVariable 't' can be declared as pointer to const
1877constParameterCallback398styleParameter 'text' can be declared as pointer to const. However it seems that 'insert_text_cb' is a callback function, if 'text' is declared with const you might also need to cast function pointer(s).
src/math-preferences.c
161unreadVariable563styleVariable 'valid' is assigned a value that is never used.
src/math-variable-popup.c
205constVariablePointer398styleVariable 'val' can be declared as pointer to const
src/math-variables.c
90constVariablePointer398styleVariable 'name' can be declared as pointer to const
91constVariablePointer398styleVariable 'value' can be declared as pointer to const
src/math-window.c
309constParameterCallback398styleParameter 'window' can be declared as pointer to const. However it seems that 'scroll_changed_cb' is a callback function, if 'window' is declared with const you might also need to cast function pointer(s).
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
387constParameterPointer398styleParameter 'serializer' can be declared as pointer to const
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
250constVariablePointer398styleVariable 'token' can be declared as pointer to const
326variableScope398styleThe scope of the variable 'buffer' can be reduced.
539variableScope398styleThe scope of the variable 'node' can be reduced.
1162variableScope398styleThe scope of the variable 'node' can be reduced.
1205constVariablePointer398styleVariable 'token' can be declared as pointer to const
1206variableScope398styleThe scope of the variable 'node' can be reduced.
src/parserfunc.c
172variableScope398styleThe scope of the variable 'buffer' can be reduced.
229variableScope398styleThe scope of the variable 'buffer' can be reduced.
src/prelexer.c
36constVariablePointer398styleVariable 'tmp' can be declared as pointer to const
src/test-mp.c
59constParameterPointer398styleParameter 'x' can be declared as pointer to const
src/unit-category.c
62constParameterPointer398styleParameter 'category' can be declared as pointer to const
81constParameterPointer398styleParameter 'category' can be declared as pointer to const
107constParameterPointer398styleParameter 'category' can be declared as pointer to const
src/unit-manager.c
175constParameterPointer398styleParameter 'manager' can be declared as pointer to const
193constParameterPointer398styleParameter 'manager' can be declared as pointer to const
196variableScope398styleThe scope of the variable 'u' can be reduced.
213constParameterPointer398styleParameter 'manager' can be declared as pointer to const
216variableScope398styleThe scope of the variable 'u' can be reduced.
233constParameterPointer398styleParameter 'manager' can be declared as pointer to const
src/unit.c
76constParameterPointer398styleParameter 'unit' can be declared as pointer to const
84constVariablePointer398styleVariable 's' can be declared as pointer to const
111constVariablePointer398styleVariable 'x' can be declared as pointer to const
140constParameterPointer398styleParameter 'unit' can be declared as pointer to const
162constParameterPointer398styleParameter 'unit' 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.
595constParameterPointer398styleParameter 'x' can be declared as pointer to const