2024-04-23 15:08 ftp://ftp.de.debian.org/debian/pool/main/a/aribas/aribas_1.65.orig.tar.gz cppcheck-options: --library=posix --library=gnu --check-library --inconclusive --enable=style,information --inline-suppr --disable=missingInclude --suppress=unmatchedSuppression --template=daca2 --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning -D__GNUC__ --platform=unix64 -j2 platform: Linux-6.6.15-amd64-x86_64-with-glibc2.37 python: 3.11.8 client-version: 1.3.53 compiler: g++ (Debian 13.2.0-13) 13.2.0 cppcheck: head 2.14.0 head-info: 24be0e5 (2024-04-23 14:04:36 +0200) count: 220 220 elapsed-time: 4.7 4.7 head-timing-info: old-timing-info: head results: aribas165/src/alloc.c:248:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ARGSTKSIZE [valueFlowBailoutIncompleteVar] aribas165/src/alloc.c:393:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RESERVE [valueFlowBailoutIncompleteVar] aribas165/src/alloc.c:472:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BLOCKMAX [valueFlowBailoutIncompleteVar] aribas165/src/alloc.c:661:6: style: Parameter 's' can be declared as const array [constParameter] aribas165/src/alloc.c:1064:7: style: Parameter 'ptr1' can be declared as pointer to const [constParameterPointer] aribas165/src/alloc.c:160:13: style: struct member 'blkdesc::flg2' is never used. [unusedStructMember] aribas165/src/analysis.c:361:13: style: Variable 'ret' is reassigned a value before the old one has been used. [redundantAssignment] aribas165/src/analysis.c:360:13: note: ret is assigned aribas165/src/analysis.c:361:13: note: ret is overwritten aribas165/src/analysis.c:362:13: style: Variable 'ret' is reassigned a value before the old one has been used. [redundantAssignment] aribas165/src/analysis.c:361:13: note: ret is assigned aribas165/src/analysis.c:362:13: note: ret is overwritten aribas165/src/analysis.c:518:6: style:inconclusive: Function 'atanprep' argument 5 names different: declaration 'segptr' definition 'segp'. [funcArgNamesDifferent] aribas165/src/analysis.c:70:31: note: Function 'atanprep' argument 5 names different: declaration 'segptr' definition 'segp'. aribas165/src/analysis.c:518:6: note: Function 'atanprep' argument 5 names different: declaration 'segptr' definition 'segp'. aribas165/src/analysis.c:744:8: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] aribas165/src/aritaux.c:163:7: style:inconclusive: Function 'refnumtrunc' argument 2 names different: declaration 'ptr' definition 'p'. [funcArgNamesDifferent] aribas165/src/common.h:995:42: note: Function 'refnumtrunc' argument 2 names different: declaration 'ptr' definition 'p'. aribas165/src/aritaux.c:163:7: note: Function 'refnumtrunc' argument 2 names different: declaration 'ptr' definition 'p'. aribas165/src/aritaux.c:245:7: style:inconclusive: Function 'getnumalign' argument 2 names different: declaration 'ptr' definition 'p'. [funcArgNamesDifferent] aribas165/src/common.h:997:42: note: Function 'getnumalign' argument 2 names different: declaration 'ptr' definition 'p'. aribas165/src/aritaux.c:245:7: note: Function 'getnumalign' argument 2 names different: declaration 'ptr' definition 'p'. aribas165/src/aritaux.c:487:10: style: Parameter 'nptr' can be declared as pointer to const [constParameterPointer] aribas165/src/aritaux.c:489:21: style: Variable 'a' can be declared as const array [constVariable] aribas165/src/aritaux.c:862:8: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] aribas165/src/aritaux.c:955:8: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] aribas165/src/aritool0.c:180:12: style: Parameter 'y' can be declared as pointer to const [constParameterPointer] aribas165/src/aritool0.c:201:12: style: Parameter 'y' can be declared as pointer to const [constParameterPointer] aribas165/src/aritool0.c:222:12: style: Parameter 'y' can be declared as pointer to const [constParameterPointer] aribas165/src/aritool0.c:274:12: style: Variable 'xx' can be declared as pointer to const [constVariablePointer] aribas165/src/aritool0.c:296:8: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] aribas165/src/aritool0.c:409:12: style: Parameter 'y' can be declared as pointer to const [constParameterPointer] aribas165/src/aritool0.c:418:12: style: Parameter 'y' can be declared as pointer to const [constParameterPointer] aribas165/src/aritool0.c:427:12: style: Parameter 'y' can be declared as pointer to const [constParameterPointer] aribas165/src/aritool0.c:507:8: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] aribas165/src/arith.c:573:7: style: Variable 'n' is reassigned a value before the old one has been used. [redundantAssignment] aribas165/src/arith.c:571:7: note: n is assigned aribas165/src/arith.c:573:7: note: n is overwritten aribas165/src/arith.c:1353:7: style: Variable 'n' is reassigned a value before the old one has been used. [redundantAssignment] aribas165/src/arith.c:1351:7: note: n is assigned aribas165/src/arith.c:1353:7: note: n is overwritten aribas165/src/arith.c:322:5: style:inconclusive: Function 'addints' argument 2 names different: declaration 'minflg' definition 'minflag'. [funcArgNamesDifferent] aribas165/src/common.h:930:41: note: Function 'addints' argument 2 names different: declaration 'minflg' definition 'minflag'. aribas165/src/arith.c:322:5: note: Function 'addints' argument 2 names different: declaration 'minflg' definition 'minflag'. aribas165/src/arith.c:355:5: style:inconclusive: Function 'addfloats' argument 2 names different: declaration 'minflg' definition 'minflag'. [funcArgNamesDifferent] aribas165/src/arith.c:77:41: note: Function 'addfloats' argument 2 names different: declaration 'minflg' definition 'minflag'. aribas165/src/arith.c:355:5: note: Function 'addfloats' argument 2 names different: declaration 'minflg' definition 'minflag'. aribas165/src/arith.c:899:5: style:inconclusive: Function 'sumintvec' argument 2 names different: declaration 'argn' definition 'len'. [funcArgNamesDifferent] aribas165/src/arith.c:95:44: note: Function 'sumintvec' argument 2 names different: declaration 'argn' definition 'len'. aribas165/src/arith.c:899:5: note: Function 'sumintvec' argument 2 names different: declaration 'argn' definition 'len'. aribas165/src/arith.c:930:5: style:inconclusive: Function 'sumfltvec' argument 2 names different: declaration 'argn' definition 'len'. [funcArgNamesDifferent] aribas165/src/arith.c:96:44: note: Function 'sumfltvec' argument 2 names different: declaration 'argn' definition 'len'. aribas165/src/arith.c:930:5: note: Function 'sumfltvec' argument 2 names different: declaration 'argn' definition 'len'. aribas165/src/arith.c:1002:5: style:inconclusive: Function 'prodintvec' argument 2 names different: declaration 'argn' definition 'len'. [funcArgNamesDifferent] aribas165/src/arith.c:98:47: note: Function 'prodintvec' argument 2 names different: declaration 'argn' definition 'len'. aribas165/src/arith.c:1002:5: note: Function 'prodintvec' argument 2 names different: declaration 'argn' definition 'len'. aribas165/src/arith.c:1049:5: style:inconclusive: Function 'prodfloatvec' argument 2 names different: declaration 'argn' definition 'len'. [funcArgNamesDifferent] aribas165/src/arith.c:99:47: note: Function 'prodfloatvec' argument 2 names different: declaration 'argn' definition 'len'. aribas165/src/arith.c:1049:5: note: Function 'prodfloatvec' argument 2 names different: declaration 'argn' definition 'len'. aribas165/src/arith.c:1443:17: style:inconclusive: Function 'intfrac' argument 2 names different: declaration 'np2' definition 'npt2'. [funcArgNamesDifferent] aribas165/src/arith.c:113:50: note: Function 'intfrac' argument 2 names different: declaration 'np2' definition 'npt2'. aribas165/src/arith.c:1443:17: note: Function 'intfrac' argument 2 names different: declaration 'np2' definition 'npt2'. aribas165/src/arith.c:1612:9: style: Local variable 'odd' shadows outer function [shadowFunction] aribas165/src/arith.c:90:13: note: Shadowed declaration aribas165/src/arith.c:1612:9: note: Shadow variable aribas165/src/arith.c:2274:24: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] aribas165/src/arith.c:717:7: style: Parameter 'ptr1' can be declared as pointer to const [constParameterPointer] aribas165/src/arith.c:741:7: style: Parameter 'ptr1' can be declared as pointer to const [constParameterPointer] aribas165/src/arith.c:1163:7: style: Parameter 'zz' can be declared as pointer to const [constParameterPointer] aribas165/src/arith.c:1667:8: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] aribas165/src/arith.c:1846:11: style: Variable 'str1' can be declared as pointer to const [constVariablePointer] aribas165/src/arith.c:1846:18: style: Variable 'str2' can be declared as pointer to const [constVariablePointer] aribas165/src/arith.c:1352:7: style: Variable 'm' is assigned a value that is never used. [unreadVariable] aribas165/src/arith.c:1966:11: style: Variable 'n' is assigned a value that is never used. [unreadVariable] aribas165/src/aritx.c:1081:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INTERRUPT [valueFlowBailoutIncompleteVar] aribas165/src/aritools.c:240:12: style:inconclusive: Function 'addsarr' argument 6 names different: declaration 'sing2' definition 'sign2'. [funcArgNamesDifferent] aribas165/src/common.h:1079:42: note: Function 'addsarr' argument 6 names different: declaration 'sing2' definition 'sign2'. aribas165/src/aritools.c:240:12: note: Function 'addsarr' argument 6 names different: declaration 'sing2' definition 'sign2'. aribas165/src/aritools.c:817:6: style:inconclusive: Function 'bigsqrt' argument 4 names different: declaration 'rlenptr' definition 'rlenp'. [funcArgNamesDifferent] aribas165/src/common.h:1096:54: note: Function 'bigsqrt' argument 4 names different: declaration 'rlenptr' definition 'rlenp'. aribas165/src/aritools.c:817:6: note: Function 'bigsqrt' argument 4 names different: declaration 'rlenptr' definition 'rlenp'. aribas165/src/aritools.c:1126:33: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] aribas165/src/aritools.c:1080:8: style: Parameter 'arr' can be declared as pointer to const [constParameterPointer] aribas165/src/aritools.c:1118:8: style: Parameter 'arr' can be declared as pointer to const [constParameterPointer] aribas165/src/aritools.c:1166:9: style: Variable 'len' is assigned a value that is never used. [unreadVariable] aribas165/src/arity.c:743:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INTERRUPT [valueFlowBailoutIncompleteVar] aribas165/src/arity.c:1635:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MINSRANGE [valueFlowBailoutIncompleteVar] aribas165/src/arity.c:1809:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INTERRUPT [valueFlowBailoutIncompleteVar] aribas165/src/arity.c:2525:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXDIFF [valueFlowBailoutIncompleteVar] aribas165/src/arity.c:2792:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ECMAXIDX [valueFlowBailoutIncompleteVar] aribas165/src/aritx.c:542:19: style: Local variable 'PrimTab' shadows outer variable [shadowVariable] aribas165/src/common.h:905:46: note: Shadowed declaration aribas165/src/aritx.c:542:19: note: Shadow variable aribas165/src/aritx.c:1050:12: style: Parameter 'ex' can be declared as pointer to const [constParameterPointer] aribas165/src/aritx.c:1146:12: style: Parameter 'ex' can be declared as pointer to const [constParameterPointer] aribas165/src/aritx.c:1256:12: style: Parameter 'ex' can be declared as pointer to const [constParameterPointer] aribas165/src/aritx.c:275:13: style: Variable 'argn' is assigned a value that is never used. [unreadVariable] aribas165/src/arity.c:1771:5: error: Address of local auto-variable assigned to a function parameter. [autoVariables] aribas165/src/arity.c:2222:13: error: Array 'sptr->qq[7]' accessed at index -1, which is out of bounds. [negativeIndex] aribas165/src/arity.c:2233:19: error: Array 'sptr->qinv[13]' accessed at index -1, which is out of bounds. [negativeIndex] aribas165/src/arity.c:2238:13: error: Array 'sptr->aa[7]' accessed at index -1, which is out of bounds. [negativeIndex] aribas165/src/arity.c:2243:13: error: Array 'sptr->bb[7]' accessed at index -1, which is out of bounds. [negativeIndex] aribas165/src/arity.c:2255:13: error: Array 'sptr->cc[12]' accessed at index -1, which is out of bounds. [negativeIndex] aribas165/src/arity.c:1701:26: style: The comparison 'again == 0' is always true. [knownConditionTrueFalse] aribas165/src/arity.c:1582:22: note: 'again' is assigned value '0' here. aribas165/src/arity.c:1701:26: note: The comparison 'again == 0' is always true. aribas165/src/arity.c:358:7: style:inconclusive: Function 'showvect' argument 1 names different: declaration 'f' definition 'logf'. [funcArgNamesDifferent] aribas165/src/common.h:970:29: note: Function 'showvect' argument 1 names different: declaration 'f' definition 'logf'. aribas165/src/arity.c:358:7: note: Function 'showvect' argument 1 names different: declaration 'f' definition 'logf'. aribas165/src/arity.c:359:8: style:inconclusive: Function 'showvect' argument 2 names different: declaration 'xx' definition 'vect'. [funcArgNamesDifferent] aribas165/src/common.h:970:39: note: Function 'showvect' argument 2 names different: declaration 'xx' definition 'vect'. aribas165/src/arity.c:359:8: note: Function 'showvect' argument 2 names different: declaration 'xx' definition 'vect'. aribas165/src/arity.c:544:7: style:inconclusive: Function 'rhomess' argument 1 names different: declaration 'i' definition 'anz'. [funcArgNamesDifferent] aribas165/src/arity.c:221:32: note: Function 'rhomess' argument 1 names different: declaration 'i' definition 'anz'. aribas165/src/arity.c:544:7: note: Function 'rhomess' argument 1 names different: declaration 'i' definition 'anz'. aribas165/src/arity.c:646:10: style:inconclusive: Function 'ec2mess' argument 1 names different: declaration 'param' definition 'u'. [funcArgNamesDifferent] aribas165/src/arity.c:275:35: note: Function 'ec2mess' argument 1 names different: declaration 'param' definition 'u'. aribas165/src/arity.c:646:10: note: Function 'ec2mess' argument 1 names different: declaration 'param' definition 'u'. aribas165/src/arity.c:657:10: style:inconclusive: Function 'ec3mess' argument 1 names different: declaration 'param' definition 'u'. [funcArgNamesDifferent] aribas165/src/arity.c:276:35: note: Function 'ec3mess' argument 1 names different: declaration 'param' definition 'u'. aribas165/src/arity.c:657:10: note: Function 'ec3mess' argument 1 names different: declaration 'param' definition 'u'. aribas165/src/arity.c:657:12: style:inconclusive: Function 'ec3mess' argument 2 names different: declaration 'bigbound' definition 'bound2'. [funcArgNamesDifferent] aribas165/src/arity.c:276:51: note: Function 'ec3mess' argument 2 names different: declaration 'bigbound' definition 'bound2'. aribas165/src/arity.c:657:12: note: Function 'ec3mess' argument 2 names different: declaration 'bigbound' definition 'bound2'. aribas165/src/arity.c:1092:12: style:inconclusive: Function 'factorbase' argument 3 names different: declaration 'prim' definition 'fbase'. [funcArgNamesDifferent] aribas165/src/arity.c:238:57: note: Function 'factorbase' argument 3 names different: declaration 'prim' definition 'fbase'. aribas165/src/arity.c:1092:12: note: Function 'factorbase' argument 3 names different: declaration 'prim' definition 'fbase'. aribas165/src/arity.c:1313:18: style:inconclusive: Function 'bm_insert' argument 5 names different: declaration 'hilf' definition 'aux'. [funcArgNamesDifferent] aribas165/src/arity.c:243:23: note: Function 'bm_insert' argument 5 names different: declaration 'hilf' definition 'aux'. aribas165/src/arity.c:1313:18: note: Function 'bm_insert' argument 5 names different: declaration 'hilf' definition 'aux'. aribas165/src/arity.c:359:8: style: Parameter 'vect' can be declared as pointer to const [constParameterPointer] aribas165/src/arity.c:517:9: style: Parameter 'bmp' can be declared as pointer to const [constParameterPointer] aribas165/src/arity.c:1277:13: style: Parameter 'fbas' can be declared as pointer to const [constParameterPointer] aribas165/src/arity.c:1316:27: style: Variable 'prime' can be declared as pointer to const [constVariablePointer] aribas165/src/arity.c:1419:12: style: Variable 'relat' can be declared as pointer to const [constVariablePointer] aribas165/src/arity.c:1909:30: style: Variable 'fblog' can be declared as pointer to const [constVariablePointer] aribas165/src/arity.c:1910:12: style: Variable 'fbas' can be declared as pointer to const [constVariablePointer] aribas165/src/arity.c:1910:19: style: Variable 'fbroot' can be declared as pointer to const [constVariablePointer] aribas165/src/arity.c:103:11: style: struct member 'CFDATA::kNlen' is never used. [unusedStructMember] aribas165/src/arity.c:104:11: style: struct member 'CFDATA::kN' is never used. [unusedStructMember] aribas165/src/arity.c:105:11: style: struct member 'CFDATA::m2' is never used. [unusedStructMember] aribas165/src/arity.c:106:11: style: struct member 'CFDATA::R0' is never used. [unusedStructMember] aribas165/src/arity.c:107:11: style: struct member 'CFDATA::Q0' is never used. [unusedStructMember] aribas165/src/arity.c:108:11: style: struct member 'CFDATA::A0' is never used. [unusedStructMember] aribas165/src/arity.c:109:11: style: struct member 'CFDATA::QQ' is never used. [unusedStructMember] aribas165/src/arity.c:110:11: style: struct member 'CFDATA::AA' is never used. [unusedStructMember] aribas165/src/arity.c:111:9: style: struct member 'CFDATA::qrsign' is never used. [unusedStructMember] aribas165/src/aritz.c:904:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INTERRUPT [valueFlowBailoutIncompleteVar] aribas165/src/aritz.c:3305:20: style:inconclusive: Function 'gf2polgcdx' argument 7 names different: declaration 'hilf' definition 'uu'. [funcArgNamesDifferent] aribas165/src/aritz.c:158:52: note: Function 'gf2polgcdx' argument 7 names different: declaration 'hilf' definition 'uu'. aribas165/src/aritz.c:3305:20: note: Function 'gf2polgcdx' argument 7 names different: declaration 'hilf' definition 'uu'. aribas165/src/aritz.c:3381:12: style:inconclusive: Function 'gf2polirred1' argument 3 names different: declaration 'y' definition 'yy'. [funcArgNamesDifferent] aribas165/src/aritz.c:160:51: note: Function 'gf2polirred1' argument 3 names different: declaration 'y' definition 'yy'. aribas165/src/aritz.c:3381:12: note: Function 'gf2polirred1' argument 3 names different: declaration 'y' definition 'yy'. aribas165/src/aritz.c:3381:17: style:inconclusive: Function 'gf2polirred1' argument 4 names different: declaration 'hilf' definition 'zz'. [funcArgNamesDifferent] aribas165/src/aritz.c:160:61: note: Function 'gf2polirred1' argument 4 names different: declaration 'hilf' definition 'zz'. aribas165/src/aritz.c:3381:17: note: Function 'gf2polirred1' argument 4 names different: declaration 'hilf' definition 'zz'. aribas165/src/aritz.c:3441:12: style:inconclusive: Function 'gf2polirred' argument 3 names different: declaration 'y' definition 'yy'. [funcArgNamesDifferent] aribas165/src/aritz.c:159:50: note: Function 'gf2polirred' argument 3 names different: declaration 'y' definition 'yy'. aribas165/src/aritz.c:3441:12: note: Function 'gf2polirred' argument 3 names different: declaration 'y' definition 'yy'. aribas165/src/aritz.c:3441:17: style:inconclusive: Function 'gf2polirred' argument 4 names different: declaration 'hilf' definition 'zz'. [funcArgNamesDifferent] aribas165/src/aritz.c:159:60: note: Function 'gf2polirred' argument 4 names different: declaration 'hilf' definition 'zz'. aribas165/src/aritz.c:3441:17: note: Function 'gf2polirred' argument 4 names different: declaration 'hilf' definition 'zz'. aribas165/src/aritz.c:872:8: style: Parameter 'ex' can be declared as pointer to const [constParameterPointer] aribas165/src/aritz.c:3054:12: style: Parameter 'y' can be declared as pointer to const [constParameterPointer] aribas165/src/aritz.c:3155:8: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] aribas165/src/aritz.c:595:14: warning: Uninitialized variable: D [uninitvar] aribas165/src/aritz.c:588:16: note: Assuming condition is false aribas165/src/aritz.c:595:14: note: Uninitialized variable: D aribas165/src/aritz.c:2363:9: style: struct member 'GF2n_Field::mode' is never used. [unusedStructMember] aribas165/src/array.c:2161:7: style: Variable 'n' is reassigned a value before the old one has been used. [redundantAssignment] aribas165/src/array.c:2158:11: note: n is assigned aribas165/src/array.c:2161:7: note: n is overwritten aribas165/src/array.c:2518:7: style:inconclusive: Function 'pnew10' argument 1 names different: declaration 'point' definition 'ptr'. [funcArgNamesDifferent] aribas165/src/array.c:174:28: note: Function 'pnew10' argument 1 names different: declaration 'point' definition 'ptr'. aribas165/src/array.c:2518:7: note: Function 'pnew10' argument 1 names different: declaration 'point' definition 'ptr'. aribas165/src/array.c:360:11: style: Variable 'argptr' can be declared as pointer to const [constVariablePointer] aribas165/src/array.c:485:27: style: Variable 'ptr2' can be declared as pointer to const [constVariablePointer] aribas165/src/array.c:488:18: style: Variable 'cpt2' can be declared as pointer to const [constVariablePointer] aribas165/src/array.c:600:17: style: Variable 'str1' can be declared as pointer to const [constVariablePointer] aribas165/src/array.c:699:18: style: Variable 'basptr' can be declared as pointer to const [constVariablePointer] aribas165/src/array.c:805:11: style: Variable 'str' can be declared as pointer to const [constVariablePointer] aribas165/src/array.c:805:17: style: Variable 'bag' can be declared as pointer to const [constVariablePointer] aribas165/src/array.c:896:11: style: Variable 'cptr' can be declared as pointer to const [constVariablePointer] aribas165/src/array.c:932:17: style: Variable 'ptr1' can be declared as pointer to const [constVariablePointer] aribas165/src/array.c:934:18: style: Variable 'cptr1' can be declared as pointer to const [constVariablePointer] aribas165/src/array.c:1168:11: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] aribas165/src/array.c:1169:11: style: Variable 'cptr' can be declared as pointer to const [constVariablePointer] aribas165/src/array.c:1215:19: style: Variable 'sptr' can be declared as pointer to const [constVariablePointer] aribas165/src/array.c:1353:20: style: Variable 'vec' can be declared as pointer to const [constVariablePointer] aribas165/src/array.c:1512:24: style: Variable 'str2' can be declared as pointer to const [constVariablePointer] aribas165/src/array.c:1599:19: style: Variable 'sptr' can be declared as pointer to const [constVariablePointer] aribas165/src/array.c:1670:11: style: Variable 'str1' can be declared as pointer to const [constVariablePointer] aribas165/src/array.c:1670:18: style: Variable 'str2' can be declared as pointer to const [constVariablePointer] aribas165/src/array.c:1685:7: style: Parameter 'ptr1' can be declared as pointer to const. However it seems that 'ucompfun' is a callback function, if 'ptr1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] aribas165/src/array.c:1807:38: note: You might need to cast the function pointer here aribas165/src/array.c:1685:7: note: Parameter 'ptr1' can be declared as pointer to const aribas165/src/array.c:1685:14: style: Parameter 'ptr2' can be declared as pointer to const. However it seems that 'ucompfun' is a callback function, if 'ptr2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] aribas165/src/array.c:1807:38: note: You might need to cast the function pointer here aribas165/src/array.c:1685:14: note: Parameter 'ptr2' can be declared as pointer to const aribas165/src/array.c:1708:20: style: Variable 'fundefptr' can be declared as pointer to const [constVariablePointer] aribas165/src/array.c:1784:27: style: Variable 'work0arr' can be declared as pointer to const [constVariablePointer] aribas165/src/array.c:2054:7: style: Parameter 'pptr' can be declared as pointer to const [constParameterPointer] aribas165/src/array.c:2482:11: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] aribas165/src/array.c:2570:20: style: Variable 'ptr1' can be declared as pointer to const [constVariablePointer] aribas165/src/eval.c:102:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INTERRUPT [valueFlowBailoutIncompleteVar] aribas165/src/eval.c:80:25: style: Variable 'ptr2' can be declared as pointer to const [constVariablePointer] aribas165/src/eval.c:450:7: style: Parameter 'argptr' can be declared as pointer to const [constParameterPointer] aribas165/src/eval.c:549:11: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] aribas165/src/control.c:1169:11: style: Variable 'str1' can be declared as pointer to const [constVariablePointer] aribas165/src/control.c:1169:18: style: Variable 'str2' can be declared as pointer to const [constVariablePointer] aribas165/src/file.c:112:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] aribas165/src/file.c:387:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] aribas165/src/file.c:477:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] aribas165/src/mainloop.c:794:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] aribas165/src/mainloop.c:889:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] aribas165/src/mainloop.c:227:13: style: Variable 'ret' is reassigned a value before the old one has been used. [redundantAssignment] aribas165/src/mainloop.c:223:13: note: ret is assigned aribas165/src/mainloop.c:227:13: note: ret is overwritten aribas165/src/mainloop.c:595:9: style: Variable 'ret' is reassigned a value before the old one has been used. [redundantAssignment] aribas165/src/mainloop.c:589:9: note: ret is assigned aribas165/src/mainloop.c:595:9: note: ret is overwritten aribas165/src/mainloop.c:475:3: style: Label 'notfound' is not used. [unusedLabel] aribas165/src/mainloop.c:480:3: style: Label 'found1' is not used. [unusedLabel] aribas165/src/mainloop.c:792:7: style: Parameter 'mess' can be declared as pointer to const [constParameterPointer] aribas165/src/mainloop.c:249:11: style: Unused variable: str [unusedVariable] aribas165/src/mainloop.c:283:17: style: Unused variable: str [unusedVariable] aribas165/src/mainloop.c:435:11: style: Unused variable: searchpath [unusedVariable] aribas165/src/mainloop.c:437:12: style: Unused variable: erf [unusedVariable] aribas165/src/file.c:774:9: style: Variable 'obj' is reassigned a value before the old one has been used. [redundantAssignment] aribas165/src/file.c:756:9: note: obj is assigned aribas165/src/file.c:774:9: note: obj is overwritten aribas165/src/file.c:432:7: style:inconclusive: Function 'loadaux' argument 1 names different: declaration 'str' definition 'fnam'. [funcArgNamesDifferent] aribas165/src/common.h:1132:28: note: Function 'loadaux' argument 1 names different: declaration 'str' definition 'fnam'. aribas165/src/file.c:432:7: note: Function 'loadaux' argument 1 names different: declaration 'str' definition 'fnam'. aribas165/src/file.c:744:9: style:inconclusive: Function 'Gblockaux' argument 3 names different: declaration 'anz' definition 'panz'. [funcArgNamesDifferent] aribas165/src/file.c:96:57: note: Function 'Gblockaux' argument 3 names different: declaration 'anz' definition 'panz'. aribas165/src/file.c:744:9: note: Function 'Gblockaux' argument 3 names different: declaration 'anz' definition 'panz'. aribas165/src/file.c:321:20: style: Variable 'strmptr' can be declared as pointer to const [constVariablePointer] aribas165/src/file.c:334:20: style: Variable 'strmptr' can be declared as pointer to const [constVariablePointer] aribas165/src/file.c:349:7: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] aribas165/src/file.c:401:7: style: Parameter 'lab' can be declared as pointer to const [constParameterPointer] aribas165/src/file.c:405:11: style: Variable 'str' can be declared as pointer to const [constVariablePointer] aribas165/src/mem0.c:76:7: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] aribas165/src/print.c:242:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] aribas165/src/print.c:1140:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INTERRUPT [valueFlowBailoutIncompleteVar] aribas165/src/print.c:746:19: style: Condition 'n>=2' is always true [knownConditionTrueFalse] aribas165/src/print.c:744:14: note: Assuming that condition 'n<=1' is not redundant aribas165/src/print.c:746:19: note: Condition 'n>=2' is always true aribas165/src/parser.c:2014:13: style: Variable 'tok' is reassigned a value before the old one has been used. [redundantAssignment] aribas165/src/parser.c:2006:13: note: tok is assigned aribas165/src/parser.c:2014:13: note: tok is overwritten aribas165/src/parser.c:402:14: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] aribas165/src/parser.c:405:9: note: Found duplicate branches for 'if' and 'else'. aribas165/src/parser.c:402:14: note: Found duplicate branches for 'if' and 'else'. aribas165/src/parser.c:1017:6: style:inconclusive: Function 'recaccess' argument 1 names different: declaration 'arr' definition 'rr'. [funcArgNamesDifferent] aribas165/src/parser.c:76:31: note: Function 'recaccess' argument 1 names different: declaration 'arr' definition 'rr'. aribas165/src/parser.c:1017:6: note: Function 'recaccess' argument 1 names different: declaration 'arr' definition 'rr'. aribas165/src/parser.c:1650:6: style:inconclusive: Function 'parmsaux' argument 4 names different: declaration 'ofp' definition 'ofptr'. [funcArgNamesDifferent] aribas165/src/parser.c:90:70: note: Function 'parmsaux' argument 4 names different: declaration 'ofp' definition 'ofptr'. aribas165/src/parser.c:1650:6: note: Function 'parmsaux' argument 4 names different: declaration 'ofp' definition 'ofptr'. aribas165/src/parser.c:449:11: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] aribas165/src/parser.c:757:7: style: Parameter 'sbuf' can be declared as pointer to const [constParameterPointer] aribas165/src/parser.c:1207:11: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] aribas165/src/parser.c:2180:11: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] aribas165/src/parser.c:2223:11: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] aribas165/src/parser.c:2223:24: style: Variable 'ptr2' can be declared as pointer to const [constVariablePointer] aribas165/src/print.c:1333:12: style: Local variable 'scratch' shadows outer function [shadowFunction] aribas165/src/common.h:1264:13: note: Shadowed declaration aribas165/src/print.c:1333:12: note: Shadow variable aribas165/src/print.c:249:7: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] aribas165/src/print.c:1251:7: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] aribas165/src/print.c:1271:15: style: Parameter 'fromstr' can be declared as pointer to const [constParameterPointer] aribas165/src/print.c:1286:15: style: Parameter 'fromstr' can be declared as pointer to const [constParameterPointer] aribas165/src/print.c:1305:15: style: Parameter 'fromstr' can be declared as pointer to const [constParameterPointer] aribas165/src/print.c:1586:7: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] aribas165/src/parser.c:1769:17: style: Variable 'tok' is assigned a value that is never used. [unreadVariable] aribas165/src/print.c:1182:8: warning: Uninitialized variable: fill [uninitvar] aribas165/src/print.c:1178:14: note: Assuming condition is false aribas165/src/print.c:1182:8: note: Uninitialized variable: fill aribas165/src/print.c:1028:13: style: Variable 'dec' is assigned a value that is never used. [unreadVariable] aribas165/src/print.c:1358:17: style: Variable 'wd1' is assigned a value that is never used. [unreadVariable] aribas165/src/scanner.c:177:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] aribas165/src/scanner.c:239:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] aribas165/src/scanner.c:260:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] aribas165/src/scanner.c:271:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] aribas165/src/scanner.c:302:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] aribas165/src/scanner.c:575:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] aribas165/src/scanner.c:584:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] aribas165/src/scanner.c:652:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] aribas165/src/scanner.c:723:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] aribas165/src/scanner.c:1385:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] aribas165/src/scanner.c:1438:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] aribas165/src/storage.c:727:5: style:inconclusive: Function 'mkchar' argument 1 names different: declaration 'ch' definition 'n'. [funcArgNamesDifferent] aribas165/src/common.h:1286:26: note: Function 'mkchar' argument 1 names different: declaration 'ch' definition 'n'. aribas165/src/storage.c:727:5: note: Function 'mkchar' argument 1 names different: declaration 'ch' definition 'n'. aribas165/src/storage.c:114:7: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] aribas165/src/storage.c:189:7: style: Parameter 'ptr' can be declared as pointer to const [constParameterPointer] aribas165/src/storage.c:794:7: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] aribas165/src/storage.c:1021:7: style: Parameter 'argptr' can be declared as pointer to const [constParameterPointer] aribas165/src/scanner.c:1132:10: style:inconclusive: Function 'accumint' argument 1 names different: declaration 'nptr' definition 'numptr'. [funcArgNamesDifferent] aribas165/src/scanner.c:96:35: note: Function 'accumint' argument 1 names different: declaration 'nptr' definition 'numptr'. aribas165/src/scanner.c:1132:10: note: Function 'accumint' argument 1 names different: declaration 'nptr' definition 'numptr'. aribas165/src/scanner.c:1166:10: style:inconclusive: Function 'accumbstr' argument 1 names different: declaration 'nptr' definition 'numptr'. [funcArgNamesDifferent] aribas165/src/scanner.c:97:35: note: Function 'accumbstr' argument 1 names different: declaration 'nptr' definition 'numptr'. aribas165/src/scanner.c:1166:10: note: Function 'accumbstr' argument 1 names different: declaration 'nptr' definition 'numptr'. aribas165/src/scanner.c:1192:10: style:inconclusive: Function 'accumfloat' argument 1 names different: declaration 'nptr' definition 'numptr'. [funcArgNamesDifferent] aribas165/src/scanner.c:98:35: note: Function 'accumfloat' argument 1 names different: declaration 'nptr' definition 'numptr'. aribas165/src/scanner.c:1192:10: note: Function 'accumfloat' argument 1 names different: declaration 'nptr' definition 'numptr'. aribas165/src/scanner.c:561:20: style: Variable 'strmptr' can be declared as pointer to const [constVariablePointer] aribas165/src/scanner.c:1311:7: style: Parameter 'ptr' can be declared as pointer to const [constParameterPointer] aribas165/src/scanner.c:1001:17: style: Variable 'ch' is assigned a value that is never used. [unreadVariable] aribas165/src/sysdep.c:250:11: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] aribas165/src/sysdep.c:187:17: style: Local variable 'StackLimit' shadows outer variable [shadowVariable] aribas165/src/sysdep.c:129:14: note: Shadowed declaration aribas165/src/sysdep.c:187:17: note: Shadow variable aribas165/src/sysdep.c:246:16: style: Variable 'gmt' can be declared as pointer to const [constVariablePointer] aribas165/src/sysdep.c:320:7: style: Parameter 'pfad' can be declared as pointer to const [constParameterPointer] aribas165/src/sysdep.c:322:9: style: Unused variable: res [unusedVariable] aribas165/src/syntchk.c:156:11: style: Variable 'ss' can be declared as pointer to const [constVariablePointer] aribas165/src/terminal.c:207:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFLINES [valueFlowBailoutIncompleteVar] aribas165/src/terminal.c:678:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFLINES [valueFlowBailoutIncompleteVar] aribas165/src/terminal.c:0:0: debug: ValueFlow maximum iterations exceeded [valueFlowMaxIterations] aribas165/src/terminal.c:612:22: warning:inconclusive: Logical disjunction always evaluates to true: k >= 'a' || k <= 'c'. [incorrectLogicOperator] aribas165/src/terminal.c:412:14: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] aribas165/src/terminal.c:536:11: style: Variable 'str' can be declared as pointer to const [constVariablePointer] aribas165/src/terminal.c:578:7: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] aribas165/src/terminal.c:736:7: style: Variable 'n' is assigned a value that is never used. [unreadVariable] diff: DONE