2025-05-09 00:52 ftp://ftp.de.debian.org/debian/pool/main/x/xa/xa_2.4.1.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-59-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.17.0 head-info: 66c9938 (2025-05-08 13:55:11 +0200) count: 208 201 elapsed-time: 15.5 15.3 head-timing-info: old-timing-info: head results: xa-2.4.1/misc/version.h:25:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] xa-2.4.1/misc/file65.c:108:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xa-2.4.1/misc/file65.c:275:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] xa-2.4.1/misc/file65.c:306:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] xa-2.4.1/misc/file65.c:322:18: style: Local variable 'offset' shadows outer argument [shadowArgument] xa-2.4.1/misc/file65.c:285:32: note: Shadowed declaration xa-2.4.1/misc/file65.c:322:18: note: Shadow variable xa-2.4.1/misc/file65.c:106:8: style: Variable 'aligntxt' can be declared as const array [constVariable] xa-2.4.1/misc/file65.c:277:6: style: Variable 'd' is assigned a value that is never used. [unreadVariable] xa-2.4.1/misc/ldo65.c:219:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xa-2.4.1/misc/ldo65.c:832:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] xa-2.4.1/misc/ldo65.c:860:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xa-2.4.1/misc/ldo65.c:942:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xa-2.4.1/misc/ldo65.c:1021:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xa-2.4.1/misc/ldo65.c:1163:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xa-2.4.1/misc/ldo65.c:1203:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xa-2.4.1/misc/ldo65.c:1272:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xa-2.4.1/misc/ldo65.c:265:4: error: Common realloc mistake: 'globdef' nulled but not freed upon failure [memleakOnRealloc] xa-2.4.1/misc/ldo65.c:278:4: error: Common realloc mistake: 'defined' nulled but not freed upon failure [memleakOnRealloc] xa-2.4.1/misc/ldo65.c:321:16: error: Common realloc mistake: 'fp' nulled but not freed upon failure [memleakOnRealloc] xa-2.4.1/misc/ldo65.c:267:3: warning: If memory allocation fails, then there is a possible null pointer dereference: globdef [nullPointerOutOfMemory] xa-2.4.1/misc/ldo65.c:261:20: note: Assuming allocation function fails xa-2.4.1/misc/ldo65.c:261:20: note: Assignment 'globdef=malloc(ngloballoc*sizeof(char*))', assigned value is 0 xa-2.4.1/misc/ldo65.c:267:3: note: Null pointer dereference xa-2.4.1/misc/ldo65.c:280:3: warning: If memory allocation fails, then there is a possible null pointer dereference: defined [nullPointerOutOfMemory] xa-2.4.1/misc/ldo65.c:274:20: note: Assuming allocation function fails xa-2.4.1/misc/ldo65.c:274:20: note: Assignment 'defined=malloc(ndefalloc*sizeof(char*))', assigned value is 0 xa-2.4.1/misc/ldo65.c:280:3: note: Null pointer dereference xa-2.4.1/misc/ldo65.c:719:2: warning: If memory allocation fails, then there is a possible null pointer dereference: treloc [nullPointerOutOfMemory] xa-2.4.1/misc/ldo65.c:674:17: note: Assuming allocation function fails xa-2.4.1/misc/ldo65.c:674:17: note: Assignment 'treloc=malloc(routtlen)', assigned value is 0 xa-2.4.1/misc/ldo65.c:719:2: note: Null pointer dereference xa-2.4.1/misc/ldo65.c:720:2: warning: If memory allocation fails, then there is a possible null pointer dereference: dreloc [nullPointerOutOfMemory] xa-2.4.1/misc/ldo65.c:675:17: note: Assuming allocation function fails xa-2.4.1/misc/ldo65.c:675:17: note: Assignment 'dreloc=malloc(routdlen)', assigned value is 0 xa-2.4.1/misc/ldo65.c:720:2: note: Null pointer dereference xa-2.4.1/misc/ldo65.c:828:33: style:inconclusive: Function 'read_options' argument 1 names different: declaration 'f' definition 'buf'. [funcArgNamesDifferent] xa-2.4.1/misc/ldo65.c:133:33: note: Function 'read_options' argument 1 names different: declaration 'f' definition 'buf'. xa-2.4.1/misc/ldo65.c:828:33: note: Function 'read_options' argument 1 names different: declaration 'f' definition 'buf'. xa-2.4.1/misc/ldo65.c:842:31: style:inconclusive: Function 'read_undef' argument 1 names different: declaration 'f' definition 'buf'. [funcArgNamesDifferent] xa-2.4.1/misc/ldo65.c:134:31: note: Function 'read_undef' argument 1 names different: declaration 'f' definition 'buf'. xa-2.4.1/misc/ldo65.c:842:31: note: Function 'read_undef' argument 1 names different: declaration 'f' definition 'buf'. xa-2.4.1/misc/ldo65.c:842:44: style:inconclusive: Function 'read_undef' argument 2 names different: declaration 'fp' definition 'file'. [funcArgNamesDifferent] xa-2.4.1/misc/ldo65.c:134:42: note: Function 'read_undef' argument 2 names different: declaration 'fp' definition 'file'. xa-2.4.1/misc/ldo65.c:842:44: note: Function 'read_undef' argument 2 names different: declaration 'fp' definition 'file'. xa-2.4.1/misc/ldo65.c:1180:26: style:inconclusive: Function 'read_globals' argument 1 names different: declaration 'file' definition 'fp'. [funcArgNamesDifferent] xa-2.4.1/misc/ldo65.c:140:26: note: Function 'read_globals' argument 1 names different: declaration 'file' definition 'fp'. xa-2.4.1/misc/ldo65.c:1180:26: note: Function 'read_globals' argument 1 names different: declaration 'file' definition 'fp'. xa-2.4.1/misc/ldo65.c:200:10: style: Local variable 'file' shadows outer variable [shadowVariable] xa-2.4.1/misc/ldo65.c:148:8: note: Shadowed declaration xa-2.4.1/misc/ldo65.c:200:10: note: Shadow variable xa-2.4.1/misc/ldo65.c:1012:10: style: Local variable 'file' shadows outer variable [shadowVariable] xa-2.4.1/misc/ldo65.c:148:8: note: Shadowed declaration xa-2.4.1/misc/ldo65.c:1012:10: note: Shadow variable xa-2.4.1/misc/ldo65.c:198:8: style: Variable 'outfile' can be declared as pointer to const [constVariablePointer] xa-2.4.1/misc/ldo65.c:204:8: style: Variable 'alignfname' can be declared as pointer to const [constVariablePointer] xa-2.4.1/misc/ldo65.c:824:37: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] xa-2.4.1/misc/ldo65.c:828:33: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] xa-2.4.1/misc/ldo65.c:914:11: style: Variable 'current' can be declared as pointer to const [constVariablePointer] xa-2.4.1/misc/ldo65.c:924:35: style: Parameter 'defined' can be declared as const array [constParameter] xa-2.4.1/misc/ldo65.c:929:11: style: Variable 'current' can be declared as pointer to const [constVariablePointer] xa-2.4.1/misc/ldo65.c:955:34: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] xa-2.4.1/misc/ldo65.c:986:8: style: Variable 'name' can be declared as pointer to const [constVariablePointer] xa-2.4.1/misc/ldo65.c:1241:32: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] xa-2.4.1/misc/ldo65.c:1257:8: style: Variable 'n' can be declared as pointer to const [constVariablePointer] xa-2.4.1/misc/ldo65.c:1326:12: style: Variable 'u' can be declared as pointer to const [constVariablePointer] xa-2.4.1/misc/ldo65.c:1341:11: style: Variable 'gl' can be declared as pointer to const [constVariablePointer] xa-2.4.1/misc/ldo65.c:1369:12: style: Variable 'u' can be declared as pointer to const [constVariablePointer] xa-2.4.1/misc/ldo65.c:1383:11: style: Variable 'gl' can be declared as pointer to const [constVariablePointer] xa-2.4.1/misc/ldo65.c:1411:12: style: Variable 'u' can be declared as pointer to const [constVariablePointer] xa-2.4.1/misc/ldo65.c:1421:11: style: Variable 'gl' can be declared as pointer to const [constVariablePointer] xa-2.4.1/misc/printcbm.c:63:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xa-2.4.1/misc/printcbm.c:81:5: style: Variable 'b' is reassigned a value before the old one has been used. [redundantAssignment] xa-2.4.1/misc/printcbm.c:80:5: note: b is assigned xa-2.4.1/misc/printcbm.c:81:5: note: b is overwritten xa-2.4.1/misc/reloc65.c:130:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xa-2.4.1/misc/reloc65.c:393:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] xa-2.4.1/misc/reloc65.c:457:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xa-2.4.1/misc/reloc65.c:236:8: portability: %d in format string (no. 1) requires 'int' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] xa-2.4.1/misc/reloc65.c:389:33: style:inconclusive: Function 'read_options' argument 1 names different: declaration 'f' definition 'buf'. [funcArgNamesDifferent] xa-2.4.1/misc/reloc65.c:67:33: note: Function 'read_options' argument 1 names different: declaration 'f' definition 'buf'. xa-2.4.1/misc/reloc65.c:389:33: note: Function 'read_options' argument 1 names different: declaration 'f' definition 'buf'. xa-2.4.1/misc/reloc65.c:401:31: style:inconclusive: Function 'read_undef' argument 1 names different: declaration 'f' definition 'buf'. [funcArgNamesDifferent] xa-2.4.1/misc/reloc65.c:68:31: note: Function 'read_undef' argument 1 names different: declaration 'f' definition 'buf'. xa-2.4.1/misc/reloc65.c:401:31: note: Function 'read_undef' argument 1 names different: declaration 'f' definition 'buf'. xa-2.4.1/misc/reloc65.c:417:41: style:inconclusive: Function 'reloc_seg' argument 1 names different: declaration 'f' definition 'buf'. [funcArgNamesDifferent] xa-2.4.1/misc/reloc65.c:69:41: note: Function 'reloc_seg' argument 1 names different: declaration 'f' definition 'buf'. xa-2.4.1/misc/reloc65.c:417:41: note: Function 'reloc_seg' argument 1 names different: declaration 'f' definition 'buf'. xa-2.4.1/misc/reloc65.c:123:8: style: Variable 'outfile' can be declared as pointer to const [constVariablePointer] xa-2.4.1/misc/reloc65.c:127:8: style: Variable 'arg' can be declared as pointer to const [constVariablePointer] xa-2.4.1/misc/reloc65.c:389:33: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] xa-2.4.1/misc/reloc65.c:401:31: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] xa-2.4.1/misc/uncpk.c:64:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xa-2.4.1/misc/uncpk.c:61:8: style: Local variable 'fp' shadows outer variable [shadowVariable] xa-2.4.1/misc/uncpk.c:35:7: note: Shadowed declaration xa-2.4.1/misc/uncpk.c:61:8: note: Shadow variable xa-2.4.1/src/version.h:25:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] xa-2.4.1/src/xa.c:182:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xa-2.4.1/src/xa.c:699:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xa-2.4.1/src/xa.c:1256:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xa-2.4.1/src/xa.c:1284:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xa-2.4.1/src/xa.c:490:17: style: Condition '!x_init()' is always true [knownConditionTrueFalse] xa-2.4.1/src/xa.c:490:24: note: Calling function 'x_init' returns 0 xa-2.4.1/src/xa.c:490:17: note: Condition '!x_init()' is always true xa-2.4.1/src/xa.c:698:11: style: Condition '!dataseg' is always false [knownConditionTrueFalse] xa-2.4.1/src/xa.c:1197:21: style: Condition 'c!='\0'' is always true [knownConditionTrueFalse] xa-2.4.1/src/xa.c:203:8: error: Memory leak: ifiles [memleak] xa-2.4.1/src/xa.c:207:8: error: Memory leak: ifiles [memleak] xa-2.4.1/src/xa.c:211:8: error: Memory leak: ifiles [memleak] xa-2.4.1/src/xa.c:536:15: style: Variable 'er' is reassigned a value before the old one has been used. [redundantAssignment] xa-2.4.1/src/xa.c:528:22: note: er is assigned xa-2.4.1/src/xa.c:536:15: note: er is overwritten xa-2.4.1/src/xa.c:1208:20: style:inconclusive: Function 'set_align' argument 1 names different: declaration 'align_value' definition 'a'. [funcArgNamesDifferent] xa-2.4.1/src/xa.h:50:20: note: Function 'set_align' argument 1 names different: declaration 'align_value' definition 'a'. xa-2.4.1/src/xa.c:1208:20: note: Function 'set_align' argument 1 names different: declaration 'align_value' definition 'a'. xa-2.4.1/src/xa.c:123:19: style: Local variable 's' shadows outer variable [shadowVariable] xa-2.4.1/src/xap.h:42:13: note: Shadowed declaration xa-2.4.1/src/xa.c:123:19: note: Shadow variable xa-2.4.1/src/xa.c:690:15: style: Local variable 'l' shadows outer variable [shadowVariable] xa-2.4.1/src/xa.c:1112:13: note: Shadowed declaration xa-2.4.1/src/xa.c:690:15: note: Shadow variable xa-2.4.1/src/xa.c:767:8: style: Local variable 'i' shadows outer variable [shadowVariable] xa-2.4.1/src/xa.c:690:20: note: Shadowed declaration xa-2.4.1/src/xa.c:767:8: note: Shadow variable xa-2.4.1/src/xa.c:847:10: style: Local variable 'l' shadows outer variable [shadowVariable] xa-2.4.1/src/xa.c:1112:13: note: Shadowed declaration xa-2.4.1/src/xa.c:847:10: note: Shadow variable xa-2.4.1/src/xa.c:124:12: style: Variable 'tmpp' can be declared as pointer to const [constVariablePointer] xa-2.4.1/src/xa.c:134:12: style: Variable 'printfile' can be declared as pointer to const [constVariablePointer] xa-2.4.1/src/xa.c:135:12: style: Variable 'ofile' can be declared as pointer to const [constVariablePointer] xa-2.4.1/src/xa.c:136:12: style: Variable 'efile' can be declared as pointer to const [constVariablePointer] xa-2.4.1/src/xa.c:137:12: style: Variable 'lfile' can be declared as pointer to const [constVariablePointer] xa-2.4.1/src/xa.c:652:35: style: Parameter 'ext' can be declared as pointer to const [constParameterPointer] xa-2.4.1/src/xa.c:1093:33: style: Parameter 's' can be declared as pointer to const [constParameterPointer] xa-2.4.1/src/xa.c:1254:19: style: Parameter 's' can be declared as pointer to const [constParameterPointer] xa-2.4.1/src/xa.c:1276:22: style: Parameter 'compat_name' can be declared as pointer to const [constParameterPointer] xa-2.4.1/src/xa.c:140:11: style: Unused variable: old_e [unusedVariable] xa-2.4.1/src/xa.c:141:11: style: Unused variable: old_l [unusedVariable] xa-2.4.1/src/xa.c:142:11: style: Unused variable: old_o [unusedVariable] xa-2.4.1/src/xaa.c:210:13: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] xa-2.4.1/src/xaa.c:45:58: style:inconclusive: Function 'a_term' argument 5 names different: declaration 'afl' definition 'pfl'. [funcArgNamesDifferent] xa-2.4.1/src/xaa.h:23:58: note: Function 'a_term' argument 5 names different: declaration 'afl' definition 'pfl'. xa-2.4.1/src/xaa.c:45:58: note: Function 'a_term' argument 5 names different: declaration 'afl' definition 'pfl'. xa-2.4.1/src/xaa.c:237:32: style: Parameter 's' can be declared as pointer to const [constParameterPointer] xa-2.4.1/src/xacharset.c:109:23: style: Parameter 'charset_name' can be declared as pointer to const [constParameterPointer] xa-2.4.1/src/xal.c:165:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xa-2.4.1/src/xal.c:432:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xa-2.4.1/src/xal.c:448:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xa-2.4.1/src/xal.c:575:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xa-2.4.1/src/xal.c:167:14: style: Condition '!(er=ll_def(s,&n,0,STD))' is always true [knownConditionTrueFalse] xa-2.4.1/src/xal.c:601:19: note: Assignment 'er=0', assigned value is 0 xa-2.4.1/src/xal.c:167:25: note: Calling function 'll_def' returns 0 xa-2.4.1/src/xal.c:167:14: note: Condition '!(er=ll_def(s,&n,0,STD))' is always true xa-2.4.1/src/xal.c:327:19: style: Condition '!(er=ll_def(s+i,&n,b,cll_fl))' is always true [knownConditionTrueFalse] xa-2.4.1/src/xal.c:601:19: note: Assignment 'er=0', assigned value is 0 xa-2.4.1/src/xal.c:327:30: note: Calling function 'll_def' returns 0 xa-2.4.1/src/xal.c:327:19: note: Condition '!(er=ll_def(s+i,&n,b,cll_fl))' is always true xa-2.4.1/src/xal.c:400:14: style: Condition '!er' is always true [knownConditionTrueFalse] xa-2.4.1/src/xal.c:601:19: note: Assignment 'er=0', assigned value is 0 xa-2.4.1/src/xal.c:392:20: note: Calling function 'll_def' returns 0 xa-2.4.1/src/xal.c:392:20: note: Assignment 'er=ll_def(s,x,b,cll_fl)', assigned value is 0 xa-2.4.1/src/xal.c:400:14: note: Condition '!er' is always true xa-2.4.1/src/xal.c:386:4: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] xa-2.4.1/src/xal.c:388:6: note: Found duplicate branches for 'if' and 'else'. xa-2.4.1/src/xal.c:386:4: note: Found duplicate branches for 'if' and 'else'. xa-2.4.1/src/xal.c:637:42: style:inconclusive: Function 'll_search' argument 3 names different: declaration 'labeltype' definition 'cll_fl'. [funcArgNamesDifferent] xa-2.4.1/src/xal.h:56:42: note: Function 'll_search' argument 3 names different: declaration 'labeltype' definition 'cll_fl'. xa-2.4.1/src/xal.c:637:42: note: Function 'll_search' argument 3 names different: declaration 'labeltype' definition 'cll_fl'. xa-2.4.1/src/xal.c:96:12: style: Variable 'fname' can be declared as pointer to const [constVariablePointer] xa-2.4.1/src/xal.c:460:8: style: Variable 'namep' can be declared as pointer to const [constVariablePointer] xa-2.4.1/src/xal.c:555:25: style: Parameter 's' can be declared as pointer to const [constParameterPointer] xa-2.4.1/src/xal.c:637:21: style: Parameter 's' can be declared as pointer to const [constParameterPointer] xa-2.4.1/src/xalisting.c:605:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xa-2.4.1/src/xalisting.c:552:11: style: Local variable 'len' shadows outer argument [shadowArgument] xa-2.4.1/src/xalisting.c:379:52: note: Shadowed declaration xa-2.4.1/src/xalisting.c:552:11: note: Shadow variable xa-2.4.1/src/xalisting.c:94:38: style: Parameter 'name' can be declared as pointer to const. However it seems that 'html_start_listing' is a callback function, if 'name' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xa-2.4.1/src/xalisting.c:160:2: note: You might need to cast the function pointer here xa-2.4.1/src/xalisting.c:94:38: note: Parameter 'name' can be declared as pointer to const xa-2.4.1/src/xalisting.c:100:45: style: Parameter 'name' can be declared as pointer to const. However it seems that 'html_set_anchor' is a callback function, if 'name' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xa-2.4.1/src/xalisting.c:162:2: note: You might need to cast the function pointer here xa-2.4.1/src/xalisting.c:100:45: note: Parameter 'name' can be declared as pointer to const xa-2.4.1/src/xalisting.c:105:46: style: Parameter 'name' can be declared as pointer to const. However it seems that 'html_start_label' is a callback function, if 'name' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xa-2.4.1/src/xalisting.c:163:2: note: You might need to cast the function pointer here xa-2.4.1/src/xalisting.c:105:46: note: Parameter 'name' can be declared as pointer to const xa-2.4.1/src/xalisting.c:122:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] xa-2.4.1/src/xalisting.c:266:69: style: Parameter 'bincode' can be declared as pointer to const [constParameterPointer] xa-2.4.1/src/xalisting.c:601:34: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] xa-2.4.1/src/xam.c:39:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xa-2.4.1/src/xam.c:52:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xa-2.4.1/src/xam.c:80:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] xa-2.4.1/src/xam.c:95:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] xa-2.4.1/src/xam.c:47:10: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] xa-2.4.1/src/xao.c:45:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xa-2.4.1/src/xao.c:39:35: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] xa-2.4.1/src/xap.c:242:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xa-2.4.1/src/xap.c:918:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xa-2.4.1/src/xap.c:933:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xa-2.4.1/src/xap.c:952:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xa-2.4.1/src/xap.c:996:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xa-2.4.1/src/xap.c:1058:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] xa-2.4.1/src/xap.c:1152:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] xa-2.4.1/src/xap.c:1244:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] xa-2.4.1/src/xap.c:303:24: style: Array index 'j' is used before limits check. [arrayIndexThenCheck] xa-2.4.1/src/xap.c:303:44: style: Array index 'j' is used before limits check. [arrayIndexThenCheck] xa-2.4.1/src/xap.c:119:36: style: Condition 'searchdef(t)' is always false [knownConditionTrueFalse] xa-2.4.1/src/xap.c:119:36: note: Calling function 'searchdef' returns !<=-1 xa-2.4.1/src/xap.c:288:12: note: Assignment 'i=0', assigned value is 0 xa-2.4.1/src/xap.c:292:9: note: Assuming condition is false xa-2.4.1/src/xap.c:119:36: note: Condition 'searchdef(t)' is always false xa-2.4.1/src/xap.c:125:36: style: Condition 'searchdef(t)' is always false [knownConditionTrueFalse] xa-2.4.1/src/xap.c:125:36: note: Calling function 'searchdef' returns !<=-1 xa-2.4.1/src/xap.c:288:12: note: Assignment 'i=0', assigned value is 0 xa-2.4.1/src/xap.c:292:9: note: Assuming condition is false xa-2.4.1/src/xap.c:125:36: note: Condition 'searchdef(t)' is always false xa-2.4.1/src/xap.c:254:11: style: Condition 'i=searchdef(t)' is always false [knownConditionTrueFalse] xa-2.4.1/src/xap.c:254:21: note: Calling function 'searchdef' returns !<=-1 xa-2.4.1/src/xap.c:288:12: note: Assignment 'i=0', assigned value is 0 xa-2.4.1/src/xap.c:292:9: note: Assuming condition is false xa-2.4.1/src/xap.c:254:11: note: Condition 'i=searchdef(t)' is always false xa-2.4.1/src/xap.c:266:11: style: Condition 'i=searchdef(t)' is always false [knownConditionTrueFalse] xa-2.4.1/src/xap.c:266:21: note: Calling function 'searchdef' returns !<=-1 xa-2.4.1/src/xap.c:288:12: note: Assignment 'i=0', assigned value is 0 xa-2.4.1/src/xap.c:292:9: note: Assuming condition is false xa-2.4.1/src/xap.c:266:11: note: Condition 'i=searchdef(t)' is always false xa-2.4.1/src/xap.c:782:25: style: Condition 't[0]=='\0'' is always false [knownConditionTrueFalse] xa-2.4.1/src/xap.c:231:5: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] xa-2.4.1/src/xap.c:342:21: style:inconclusive: Function 'pp_define' argument 1 names different: declaration 'name' definition 'k'. [funcArgNamesDifferent] xa-2.4.1/src/xap.h:27:21: note: Function 'pp_define' argument 1 names different: declaration 'name' definition 'k'. xa-2.4.1/src/xap.c:342:21: note: Function 'pp_define' argument 1 names different: declaration 'name' definition 'k'. xa-2.4.1/src/xap.c:547:16: style: Local variable 'c' shadows outer variable [shadowVariable] xa-2.4.1/src/xap.c:494:14: note: Shadowed declaration xa-2.4.1/src/xap.c:547:16: note: Shadow variable xa-2.4.1/src/xap.c:1013:16: style: Local variable 'tlen' shadows outer variable [shadowVariable] xa-2.4.1/src/xa.h:38:12: note: Shadowed declaration xa-2.4.1/src/xap.c:1013:16: note: Shadow variable xa-2.4.1/src/xap.c:1227:19: style: Clarify calculation precedence for '-' and '?'. [clarifyCalculation] xa-2.4.1/src/xap.c:184:20: style: Parameter 't' can be declared as pointer to const. However it seems that 'pp_error' is a callback function, if 't' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xa-2.4.1/src/xap.c:74:23: note: You might need to cast the function pointer here xa-2.4.1/src/xap.c:184:20: note: Parameter 't' can be declared as pointer to const xa-2.4.1/src/xap.c:228:18: style: Parameter 't' can be declared as pointer to const [constParameterPointer] xa-2.4.1/src/xap.c:286:21: style: Parameter 't' can be declared as pointer to const [constParameterPointer] xa-2.4.1/src/xap.c:438:19: style: Parameter 's' can be declared as const array [constParameter] xa-2.4.1/src/xap.c:438:29: style: Parameter 'v' can be declared as const array [constParameter] xa-2.4.1/src/xap.c:462:29: style: Parameter 't' can be declared as pointer to const [constParameterPointer] xa-2.4.1/src/xap.c:466:31: style: Variable 'x' can be declared as pointer to const [constVariablePointer] xa-2.4.1/src/xap.c:490:34: style: Parameter 'to' can be declared as pointer to const [constParameterPointer] xa-2.4.1/src/xap.c:506:15: style: Variable 'rs' can be declared as pointer to const [constVariablePointer] xa-2.4.1/src/xap.c:905:19: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] xa-2.4.1/src/xap.c:965:12: style: Variable 'namep' can be declared as pointer to const [constVariablePointer] xa-2.4.1/src/xap.c:1014:12: style: Variable 'p' can be declared as pointer to const [constVariablePointer] xa-2.4.1/src/xap.c:1015:12: style: Variable 'q' can be declared as pointer to const [constVariablePointer] xa-2.4.1/src/xap.c:759:19: style: Variable 'er' is assigned a value that is never used. [unreadVariable] xa-2.4.1/src/xap.c:862:7: style: Variable 'er' is assigned a value that is never used. [unreadVariable] xa-2.4.1/src/xap.c:1014:14: style: Variable 'p' is assigned a value that is never used. [unreadVariable] xa-2.4.1/src/xap.c:1015:14: style: Variable 'q' is assigned a value that is never used. [unreadVariable] xa-2.4.1/src/xap.c:1014:12: style: Variable 'p' is assigned a value that is never used. [unreadVariable] xa-2.4.1/src/xap.c:1015:12: style: Variable 'q' is assigned a value that is never used. [unreadVariable] xa-2.4.1/src/xar.c:103:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xa-2.4.1/src/xar.c:152:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xa-2.4.1/src/xar.c:208:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xa-2.4.1/src/xar.c:47:23: style:inconclusive: Function 'u_set' argument 2 names different: declaration 'reloc' definition 'afl'. [funcArgNamesDifferent] xa-2.4.1/src/xar.h:29:23: note: Function 'u_set' argument 2 names different: declaration 'reloc' definition 'afl'. xa-2.4.1/src/xar.c:47:23: note: Function 'u_set' argument 2 names different: declaration 'reloc' definition 'afl'. xa-2.4.1/src/xar.c:47:43: style:inconclusive: Function 'u_set' argument 4 names different: declaration 'len' definition 'l'. [funcArgNamesDifferent] xa-2.4.1/src/xar.h:29:45: note: Function 'u_set' argument 4 names different: declaration 'len' definition 'l'. xa-2.4.1/src/xar.c:47:43: note: Function 'u_set' argument 4 names different: declaration 'len' definition 'l'. xa-2.4.1/src/xar.c:62:17: style:inconclusive: Function 'r_mode' argument 1 names different: declaration 'mode' definition 'm'. [funcArgNamesDifferent] xa-2.4.1/src/xar.h:36:17: note: Function 'r_mode' argument 1 names different: declaration 'mode' definition 'm'. xa-2.4.1/src/xar.c:62:17: note: Function 'r_mode' argument 1 names different: declaration 'mode' definition 'm'. xa-2.4.1/src/xar.c:76:24: style:inconclusive: Function 'rt_set' argument 2 names different: declaration 'reloc' definition 'afl'. [funcArgNamesDifferent] xa-2.4.1/src/xar.h:31:24: note: Function 'rt_set' argument 2 names different: declaration 'reloc' definition 'afl'. xa-2.4.1/src/xar.c:76:24: note: Function 'rt_set' argument 2 names different: declaration 'reloc' definition 'afl'. xa-2.4.1/src/xar.c:76:33: style:inconclusive: Function 'rt_set' argument 3 names different: declaration 'len' definition 'l'. [funcArgNamesDifferent] xa-2.4.1/src/xar.h:31:35: note: Function 'rt_set' argument 3 names different: declaration 'len' definition 'l'. xa-2.4.1/src/xar.c:76:33: note: Function 'rt_set' argument 3 names different: declaration 'len' definition 'l'. xa-2.4.1/src/xar.c:76:40: style:inconclusive: Function 'rt_set' argument 4 names different: declaration 'label' definition 'lab'. [funcArgNamesDifferent] xa-2.4.1/src/xar.h:31:44: note: Function 'rt_set' argument 4 names different: declaration 'label' definition 'lab'. xa-2.4.1/src/xar.c:76:40: note: Function 'rt_set' argument 4 names different: declaration 'label' definition 'lab'. xa-2.4.1/src/xar.c:186:31: style:inconclusive: Function 'seg_start' argument 2 names different: declaration 'tbase' definition 't_base'. [funcArgNamesDifferent] xa-2.4.1/src/xar.h:43:31: note: Function 'seg_start' argument 2 names different: declaration 'tbase' definition 't_base'. xa-2.4.1/src/xar.c:186:31: note: Function 'seg_start' argument 2 names different: declaration 'tbase' definition 't_base'. xa-2.4.1/src/xar.c:186:43: style:inconclusive: Function 'seg_start' argument 3 names different: declaration 'dbase' definition 'd_base'. [funcArgNamesDifferent] xa-2.4.1/src/xar.h:43:42: note: Function 'seg_start' argument 3 names different: declaration 'dbase' definition 'd_base'. xa-2.4.1/src/xar.c:186:43: note: Function 'seg_start' argument 3 names different: declaration 'dbase' definition 'd_base'. xa-2.4.1/src/xar.c:186:55: style:inconclusive: Function 'seg_start' argument 4 names different: declaration 'bbase' definition 'b_base'. [funcArgNamesDifferent] xa-2.4.1/src/xar.h:43:53: note: Function 'seg_start' argument 4 names different: declaration 'bbase' definition 'b_base'. xa-2.4.1/src/xar.c:186:55: note: Function 'seg_start' argument 4 names different: declaration 'bbase' definition 'b_base'. xa-2.4.1/src/xar.c:186:67: style:inconclusive: Function 'seg_start' argument 5 names different: declaration 'zbase' definition 'z_base'. [funcArgNamesDifferent] xa-2.4.1/src/xar.h:43:64: note: Function 'seg_start' argument 5 names different: declaration 'zbase' definition 'z_base'. xa-2.4.1/src/xar.c:186:67: note: Function 'seg_start' argument 5 names different: declaration 'zbase' definition 'z_base'. xa-2.4.1/src/xar.c:187:11: style:inconclusive: Function 'seg_start' argument 6 names different: declaration 'stacklen' definition 'slen'. [funcArgNamesDifferent] xa-2.4.1/src/xar.h:44:12: note: Function 'seg_start' argument 6 names different: declaration 'stacklen' definition 'slen'. xa-2.4.1/src/xar.c:187:11: note: Function 'seg_start' argument 6 names different: declaration 'stacklen' definition 'slen'. xa-2.4.1/src/xar.c:272:13: style:inconclusive: Function 'h_write' argument 7 names different: declaration 'stacklen' definition 'stack'. [funcArgNamesDifferent] xa-2.4.1/src/xar.h:41:9: note: Function 'h_write' argument 7 names different: declaration 'stacklen' definition 'stack'. xa-2.4.1/src/xar.c:272:13: note: Function 'h_write' argument 7 names different: declaration 'stacklen' definition 'stack'. xa-2.4.1/src/xar.c:203:8: style: Local variable 'afile' shadows outer variable [shadowVariable] xa-2.4.1/src/xah.h:278:14: note: Shadowed declaration xa-2.4.1/src/xar.c:203:8: note: Shadow variable xa-2.4.1/src/xar2.c:57:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xa-2.4.1/src/xar2.c:106:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xa-2.4.1/src/xar2.c:35:24: style:inconclusive: Function 'rd_set' argument 2 names different: declaration 'reloc' definition 'afl'. [funcArgNamesDifferent] xa-2.4.1/src/xar.h:32:24: note: Function 'rd_set' argument 2 names different: declaration 'reloc' definition 'afl'. xa-2.4.1/src/xar2.c:35:24: note: Function 'rd_set' argument 2 names different: declaration 'reloc' definition 'afl'. xa-2.4.1/src/xar2.c:35:33: style:inconclusive: Function 'rd_set' argument 3 names different: declaration 'len' definition 'l'. [funcArgNamesDifferent] xa-2.4.1/src/xar.h:32:35: note: Function 'rd_set' argument 3 names different: declaration 'len' definition 'l'. xa-2.4.1/src/xar2.c:35:33: note: Function 'rd_set' argument 3 names different: declaration 'len' definition 'l'. xa-2.4.1/src/xar2.c:35:40: style:inconclusive: Function 'rd_set' argument 4 names different: declaration 'label' definition 'lab'. [funcArgNamesDifferent] xa-2.4.1/src/xar.h:32:44: note: Function 'rd_set' argument 4 names different: declaration 'label' definition 'lab'. xa-2.4.1/src/xar2.c:35:40: note: Function 'rd_set' argument 4 names different: declaration 'label' definition 'lab'. xa-2.4.1/src/xat.c:580:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xa-2.4.1/src/xat.c:1333:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xa-2.4.1/src/xat.c:862:32: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] xa-2.4.1/src/xat.c:391:10: style: Local variable 'tlen' shadows outer variable [shadowVariable] xa-2.4.1/src/xa.h:38:12: note: Shadowed declaration xa-2.4.1/src/xat.c:391:10: note: Shadow variable xa-2.4.1/src/xat.c:722:7: style: Local variable 'l' shadows outer variable [shadowVariable] xa-2.4.1/src/xat.c:389:20: note: Shadowed declaration xa-2.4.1/src/xat.c:722:7: note: Shadow variable xa-2.4.1/src/xat.c:892:13: style: Local variable 'inp' shadows outer variable [shadowVariable] xa-2.4.1/src/xat.c:392:10: note: Shadowed declaration xa-2.4.1/src/xat.c:892:13: note: Shadow variable xa-2.4.1/src/xat.c:1007:10: style: Local variable 'i' shadows outer variable [shadowVariable] xa-2.4.1/src/xat.c:389:46: note: Shadowed declaration xa-2.4.1/src/xat.c:1007:10: note: Shadow variable xa-2.4.1/src/xat.c:1016:7: style: Local variable 'n' shadows outer variable [shadowVariable] xa-2.4.1/src/xat.c:389:22: note: Shadowed declaration xa-2.4.1/src/xat.c:1016:7: note: Shadow variable xa-2.4.1/src/xat.c:1028:10: style: Local variable 'i' shadows outer variable [shadowVariable] xa-2.4.1/src/xat.c:389:46: note: Shadowed declaration xa-2.4.1/src/xat.c:1028:10: note: Shadow variable xa-2.4.1/src/xat.c:1037:7: style: Local variable 'n' shadows outer variable [shadowVariable] xa-2.4.1/src/xat.c:389:22: note: Shadowed declaration xa-2.4.1/src/xat.c:1037:7: note: Shadow variable xa-2.4.1/src/xat.c:1152:10: style: Local variable 'tlen' shadows outer variable [shadowVariable] xa-2.4.1/src/xa.h:38:12: note: Shadowed declaration xa-2.4.1/src/xat.c:1152:10: note: Shadow variable xa-2.4.1/src/xat.c:1315:7: style: Local variable 'c' shadows outer variable [shadowVariable] xa-2.4.1/src/xat.c:1206:51: note: Shadowed declaration xa-2.4.1/src/xat.c:1315:7: note: Shadow variable xa-2.4.1/src/xat.c:1330:10: style: Local variable 'k' shadows outer variable [shadowVariable] xa-2.4.1/src/xat.c:1206:31: note: Shadowed declaration xa-2.4.1/src/xat.c:1330:10: note: Shadow variable xa-2.4.1/src/xat.c:1365:7: style: Local variable 'j' shadows outer variable [shadowVariable] xa-2.4.1/src/xat.c:1206:29: note: Shadowed declaration xa-2.4.1/src/xat.c:1365:7: note: Shadow variable xa-2.4.1/src/xat.c:1366:7: style: Local variable 'l' shadows outer variable [shadowVariable] xa-2.4.1/src/xat.c:1206:40: note: Shadowed declaration xa-2.4.1/src/xat.c:1366:7: note: Shadow variable xa-2.4.1/src/xat.c:1410:10: style: Local variable 'k' shadows outer variable [shadowVariable] xa-2.4.1/src/xat.c:1206:31: note: Shadowed declaration xa-2.4.1/src/xat.c:1410:10: note: Shadow variable xa-2.4.1/src/xat.c:2354:18: style: Variable 'unlimited' can be declared as pointer to const [constVariablePointer] xa-2.4.1/src/xat.c:2637:35: style: Parameter 's' can be declared as pointer to const [constParameterPointer] xa-2.4.1/src/xat.c:2703:14: style: Parameter 's' can be declared as pointer to const [constParameterPointer] xa-2.4.1/src/xat.c:2715:33: style: Parameter 's' can be declared as pointer to const [constParameterPointer] xa-2.4.1/src/xat.c:2726:33: style: Parameter 's' can be declared as pointer to const [constParameterPointer] xa-2.4.1/src/xat.c:2737:33: style: Parameter 's' can be declared as pointer to const [constParameterPointer] xa-2.4.1/src/xat.c:2753:32: style: Parameter 's' can be declared as pointer to const [constParameterPointer] xa-2.4.1/src/xat.c:918:10: style: Variable 'inp' is assigned a value that is never used. [unreadVariable] xa-2.4.1/src/xau.c:49:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xa-2.4.1/tests/chppch/test.c:3:10: error: syntax error [syntaxError] xa-2.4.1/tests/cpp/over.h:10:6: error: syntax error [syntaxError] diff: head xa-2.4.1/src/xap.c:1014:12: style: Variable 'p' is assigned a value that is never used. [unreadVariable] head xa-2.4.1/src/xap.c:1015:12: style: Variable 'q' is assigned a value that is never used. [unreadVariable] head xa-2.4.1/src/xap.c:119:36: style: Condition 'searchdef(t)' is always false [knownConditionTrueFalse] xa-2.4.1/src/xap.c:119:36: note: Calling function 'searchdef' returns !<=-1 xa-2.4.1/src/xap.c:288:12: note: Assignment 'i=0', assigned value is 0 xa-2.4.1/src/xap.c:292:9: note: Assuming condition is false xa-2.4.1/src/xap.c:119:36: note: Condition 'searchdef(t)' is always false head xa-2.4.1/src/xap.c:125:36: style: Condition 'searchdef(t)' is always false [knownConditionTrueFalse] xa-2.4.1/src/xap.c:125:36: note: Calling function 'searchdef' returns !<=-1 xa-2.4.1/src/xap.c:288:12: note: Assignment 'i=0', assigned value is 0 xa-2.4.1/src/xap.c:292:9: note: Assuming condition is false xa-2.4.1/src/xap.c:125:36: note: Condition 'searchdef(t)' is always false head xa-2.4.1/src/xap.c:254:11: style: Condition 'i=searchdef(t)' is always false [knownConditionTrueFalse] xa-2.4.1/src/xap.c:254:21: note: Calling function 'searchdef' returns !<=-1 xa-2.4.1/src/xap.c:288:12: note: Assignment 'i=0', assigned value is 0 xa-2.4.1/src/xap.c:292:9: note: Assuming condition is false xa-2.4.1/src/xap.c:254:11: note: Condition 'i=searchdef(t)' is always false head xa-2.4.1/src/xap.c:266:11: style: Condition 'i=searchdef(t)' is always false [knownConditionTrueFalse] xa-2.4.1/src/xap.c:266:21: note: Calling function 'searchdef' returns !<=-1 xa-2.4.1/src/xap.c:288:12: note: Assignment 'i=0', assigned value is 0 xa-2.4.1/src/xap.c:292:9: note: Assuming condition is false xa-2.4.1/src/xap.c:266:11: note: Condition 'i=searchdef(t)' is always false head xa-2.4.1/src/xap.c:303:44: style: Array index 'j' is used before limits check. [arrayIndexThenCheck] DONE