2025-11-27 07:26 ftp://ftp.de.debian.org/debian/pool/main/j/jam/jam_2.6.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 -j4 platform: Linux-6.12.57+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: 9486fde (2025-11-26 08:20:02 +0100) count: 149 116 elapsed-time: 0.5 0.5 head-timing-info: old-timing-info: head results: jam-2.6.1/command.c:37:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cmd [nullPointerOutOfMemory] jam-2.6.1/command.c:35:26: note: Assuming allocation function fails jam-2.6.1/command.c:35:13: note: Assignment 'cmd=(struct CMD*)malloc(sizeof(struct CMD))', assigned value is 0 jam-2.6.1/command.c:37:2: note: Null pointer dereference jam-2.6.1/command.c:38:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cmd [nullPointerOutOfMemory] jam-2.6.1/command.c:35:26: note: Assuming allocation function fails jam-2.6.1/command.c:35:13: note: Assignment 'cmd=(struct CMD*)malloc(sizeof(struct CMD))', assigned value is 0 jam-2.6.1/command.c:38:2: note: Null pointer dereference jam-2.6.1/command.c:39:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cmd [nullPointerOutOfMemory] jam-2.6.1/command.c:35:26: note: Assuming allocation function fails jam-2.6.1/command.c:35:13: note: Assignment 'cmd=(struct CMD*)malloc(sizeof(struct CMD))', assigned value is 0 jam-2.6.1/command.c:39:2: note: Null pointer dereference jam-2.6.1/command.c:40:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cmd [nullPointerOutOfMemory] jam-2.6.1/command.c:35:26: note: Assuming allocation function fails jam-2.6.1/command.c:35:13: note: Assignment 'cmd=(struct CMD*)malloc(sizeof(struct CMD))', assigned value is 0 jam-2.6.1/command.c:40:2: note: Null pointer dereference jam-2.6.1/command.c:49:33: warning: If memory allocation fails, then there is a possible null pointer dereference: cmd [nullPointerOutOfMemory] jam-2.6.1/command.c:35:26: note: Assuming allocation function fails jam-2.6.1/command.c:35:13: note: Assignment 'cmd=(struct CMD*)malloc(sizeof(struct CMD))', assigned value is 0 jam-2.6.1/command.c:49:33: note: Null pointer dereference jam-2.6.1/builtins.c:307:11: style: Local variable 'l' shadows outer variable [shadowVariable] jam-2.6.1/builtins.c:279:8: note: Shadowed declaration jam-2.6.1/builtins.c:307:11: note: Shadow variable jam-2.6.1/builtins.c:126:9: style: Parameter 'parse' can be declared as pointer to const. However it seems that 'builtin_depends' is a callback function, if 'parse' is declared with const you might also need to cast function pointer(s). [constParameterCallback] jam-2.6.1/builtins.c:88:14: note: You might need to cast the function pointer here jam-2.6.1/builtins.c:126:9: note: Parameter 'parse' can be declared as pointer to const jam-2.6.1/builtins.c:132:8: style: Variable 'l' can be declared as pointer to const [constVariablePointer] jam-2.6.1/builtins.c:201:9: style: Parameter 'parse' can be declared as pointer to const. However it seems that 'builtin_flags' is a callback function, if 'parse' is declared with const you might also need to cast function pointer(s). [constParameterCallback] jam-2.6.1/builtins.c:113:14: note: You might need to cast the function pointer here jam-2.6.1/builtins.c:201:9: note: Parameter 'parse' can be declared as pointer to const jam-2.6.1/builtins.c:205:8: style: Variable 'l' can be declared as pointer to const [constVariablePointer] jam-2.6.1/builtins.c:230:9: style: Variable 'l' can be declared as pointer to const [constVariablePointer] jam-2.6.1/builtins.c:255:8: style: Variable 'l' can be declared as pointer to const [constVariablePointer] jam-2.6.1/builtins.c:279:8: style: Variable 'l' can be declared as pointer to const [constVariablePointer] jam-2.6.1/builtins.c:279:12: style: Variable 'r' can be declared as pointer to const [constVariablePointer] jam-2.6.1/execunix.c:334:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] jam-2.6.1/execunix.c:289:13: style: Obsolescent function 'vfork' called. It is recommended to use 'fork' instead. [prohibitedvforkCalled] jam-2.6.1/execunix.c:159:8: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] jam-2.6.1/execunix.c:162:8: style: Parameter 'shell' can be declared as pointer to const [constParameterPointer] jam-2.6.1/fileunix.c:201:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] jam-2.6.1/compile.c:582:6: warning: If memory allocation fails, then there is a possible null pointer dereference: action [nullPointerOutOfMemory] jam-2.6.1/compile.c:579:31: note: Assuming allocation function fails jam-2.6.1/compile.c:579:15: note: Assignment 'action=(struct ACTION*)malloc(sizeof(struct ACTION))', assigned value is 0 jam-2.6.1/compile.c:582:6: note: Null pointer dereference jam-2.6.1/compile.c:583:6: warning: If memory allocation fails, then there is a possible null pointer dereference: action [nullPointerOutOfMemory] jam-2.6.1/compile.c:579:31: note: Assuming allocation function fails jam-2.6.1/compile.c:579:15: note: Assignment 'action=(struct ACTION*)malloc(sizeof(struct ACTION))', assigned value is 0 jam-2.6.1/compile.c:583:6: note: Null pointer dereference jam-2.6.1/compile.c:584:6: warning: If memory allocation fails, then there is a possible null pointer dereference: action [nullPointerOutOfMemory] jam-2.6.1/compile.c:579:31: note: Assuming allocation function fails jam-2.6.1/compile.c:579:15: note: Assignment 'action=(struct ACTION*)malloc(sizeof(struct ACTION))', assigned value is 0 jam-2.6.1/compile.c:584:6: note: Null pointer dereference jam-2.6.1/compile.c:588:15: warning: If memory allocation fails, then there is a possible null pointer dereference: action [nullPointerOutOfMemory] jam-2.6.1/compile.c:579:31: note: Assuming allocation function fails jam-2.6.1/compile.c:579:15: note: Assignment 'action=(struct ACTION*)malloc(sizeof(struct ACTION))', assigned value is 0 jam-2.6.1/compile.c:588:15: note: Null pointer dereference jam-2.6.1/compile.c:258:9: style:inconclusive: Function 'compile_foreach' argument 1 names different: declaration 'parse' definition 'p'. [funcArgNamesDifferent] jam-2.6.1/compile.h:23:31: note: Function 'compile_foreach' argument 1 names different: declaration 'parse' definition 'p'. jam-2.6.1/compile.c:258:9: note: Function 'compile_foreach' argument 1 names different: declaration 'parse' definition 'p'. jam-2.6.1/compile.c:314:9: style:inconclusive: Function 'compile_if' argument 1 names different: declaration 'parse' definition 'p'. [funcArgNamesDifferent] jam-2.6.1/compile.h:24:26: note: Function 'compile_if' argument 1 names different: declaration 'parse' definition 'p'. jam-2.6.1/compile.c:314:9: note: Function 'compile_if' argument 1 names different: declaration 'parse' definition 'p'. jam-2.6.1/compile.c:549:9: style:inconclusive: Function 'evaluate_rule' argument 1 names different: declaration 'p' definition 'parse'. [funcArgNamesDifferent] jam-2.6.1/compile.h:40:29: note: Function 'evaluate_rule' argument 1 names different: declaration 'p' definition 'parse'. jam-2.6.1/compile.c:549:9: note: Function 'evaluate_rule' argument 1 names different: declaration 'p' definition 'parse'. jam-2.6.1/compile.c:550:14: style:inconclusive: Function 'evaluate_rule' argument 2 names different: declaration 'rule' definition 'rulename'. [funcArgNamesDifferent] jam-2.6.1/compile.h:40:44: note: Function 'evaluate_rule' argument 2 names different: declaration 'rule' definition 'rulename'. jam-2.6.1/compile.c:550:14: note: Function 'evaluate_rule' argument 2 names different: declaration 'rule' definition 'rulename'. jam-2.6.1/compile.c:893:9: style:inconclusive: Function 'compile_while' argument 1 names different: declaration 'parse' definition 'p'. [funcArgNamesDifferent] jam-2.6.1/compile.h:38:29: note: Function 'compile_while' argument 1 names different: declaration 'parse' definition 'p'. jam-2.6.1/compile.c:893:9: note: Function 'compile_while' argument 1 names different: declaration 'parse' definition 'p'. jam-2.6.1/compile.c:596:13: style: Local variable 'parse' shadows outer argument [shadowArgument] jam-2.6.1/compile.c:549:9: note: Shadowed declaration jam-2.6.1/compile.c:596:13: note: Shadow variable jam-2.6.1/compile.c:162:18: style: Variable 's' can be declared as pointer to const [constVariablePointer] jam-2.6.1/compile.c:264:8: style: Variable 'l' can be declared as pointer to const [constVariablePointer] jam-2.6.1/compile.c:387:9: style: Parameter 'parse' can be declared as pointer to const [constParameterPointer] jam-2.6.1/compile.c:410:8: style: Variable 'l' can be declared as pointer to const [constVariablePointer] jam-2.6.1/compile.c:450:9: style: Parameter 'parse' can be declared as pointer to const [constParameterPointer] jam-2.6.1/compile.c:451:7: style: Parameter 'args' can be declared as pointer to const [constParameterPointer] jam-2.6.1/compile.c:452:7: style: Parameter 'jmp' can be declared as pointer to const [constParameterPointer] jam-2.6.1/compile.c:518:13: style: Variable 'l' can be declared as pointer to const [constVariablePointer] jam-2.6.1/compile.c:599:12: style: Variable 'l' can be declared as pointer to const [constVariablePointer] jam-2.6.1/compile.c:678:8: style: Variable 'l' can be declared as pointer to const [constVariablePointer] jam-2.6.1/compile.c:716:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] jam-2.6.1/compile.c:804:8: style: Variable 'ts' can be declared as pointer to const [constVariablePointer] jam-2.6.1/compile.c:824:12: style: Variable 'l' can be declared as pointer to const [constVariablePointer] jam-2.6.1/compile.c:945:14: style: Variable 'indent' can be declared as const array [constVariable] jam-2.6.1/hash.c:192:2: warning: If memory allocation fails, then there is a possible null pointer dereference: hp [nullPointerOutOfMemory] jam-2.6.1/hash.c:190:41: note: Assuming allocation function fails jam-2.6.1/hash.c:190:20: note: Assignment 'hp=(struct hash*)malloc(sizeof(*hp))', assigned value is 0 jam-2.6.1/hash.c:192:2: note: Null pointer dereference jam-2.6.1/hash.c:193:2: warning: If memory allocation fails, then there is a possible null pointer dereference: hp [nullPointerOutOfMemory] jam-2.6.1/hash.c:190:41: note: Assuming allocation function fails jam-2.6.1/hash.c:190:20: note: Assignment 'hp=(struct hash*)malloc(sizeof(*hp))', assigned value is 0 jam-2.6.1/hash.c:193:2: note: Null pointer dereference jam-2.6.1/hash.c:194:2: warning: If memory allocation fails, then there is a possible null pointer dereference: hp [nullPointerOutOfMemory] jam-2.6.1/hash.c:190:41: note: Assuming allocation function fails jam-2.6.1/hash.c:190:20: note: Assignment 'hp=(struct hash*)malloc(sizeof(*hp))', assigned value is 0 jam-2.6.1/hash.c:194:2: note: Null pointer dereference jam-2.6.1/hash.c:195:2: warning: If memory allocation fails, then there is a possible null pointer dereference: hp [nullPointerOutOfMemory] jam-2.6.1/hash.c:190:41: note: Assuming allocation function fails jam-2.6.1/hash.c:190:20: note: Assignment 'hp=(struct hash*)malloc(sizeof(*hp))', assigned value is 0 jam-2.6.1/hash.c:195:2: note: Null pointer dereference jam-2.6.1/hash.c:196:2: warning: If memory allocation fails, then there is a possible null pointer dereference: hp [nullPointerOutOfMemory] jam-2.6.1/hash.c:190:41: note: Assuming allocation function fails jam-2.6.1/hash.c:190:20: note: Assignment 'hp=(struct hash*)malloc(sizeof(*hp))', assigned value is 0 jam-2.6.1/hash.c:196:2: note: Null pointer dereference jam-2.6.1/hash.c:197:2: warning: If memory allocation fails, then there is a possible null pointer dereference: hp [nullPointerOutOfMemory] jam-2.6.1/hash.c:190:41: note: Assuming allocation function fails jam-2.6.1/hash.c:190:20: note: Assignment 'hp=(struct hash*)malloc(sizeof(*hp))', assigned value is 0 jam-2.6.1/hash.c:197:2: note: Null pointer dereference jam-2.6.1/hash.c:198:2: warning: If memory allocation fails, then there is a possible null pointer dereference: hp [nullPointerOutOfMemory] jam-2.6.1/hash.c:190:41: note: Assuming allocation function fails jam-2.6.1/hash.c:190:20: note: Assignment 'hp=(struct hash*)malloc(sizeof(*hp))', assigned value is 0 jam-2.6.1/hash.c:198:2: note: Null pointer dereference jam-2.6.1/hash.c:199:2: warning: If memory allocation fails, then there is a possible null pointer dereference: hp [nullPointerOutOfMemory] jam-2.6.1/hash.c:190:41: note: Assuming allocation function fails jam-2.6.1/hash.c:190:20: note: Assignment 'hp=(struct hash*)malloc(sizeof(*hp))', assigned value is 0 jam-2.6.1/hash.c:199:2: note: Null pointer dereference jam-2.6.1/hash.c:200:2: warning: If memory allocation fails, then there is a possible null pointer dereference: hp [nullPointerOutOfMemory] jam-2.6.1/hash.c:190:41: note: Assuming allocation function fails jam-2.6.1/hash.c:190:20: note: Assignment 'hp=(struct hash*)malloc(sizeof(*hp))', assigned value is 0 jam-2.6.1/hash.c:200:2: note: Null pointer dereference jam-2.6.1/hash.c:201:2: warning: If memory allocation fails, then there is a possible null pointer dereference: hp [nullPointerOutOfMemory] jam-2.6.1/hash.c:190:41: note: Assuming allocation function fails jam-2.6.1/hash.c:190:20: note: Assignment 'hp=(struct hash*)malloc(sizeof(*hp))', assigned value is 0 jam-2.6.1/hash.c:201:2: note: Null pointer dereference jam-2.6.1/hash.c:168:19: style: Local variable 'i' shadows outer variable [shadowVariable] jam-2.6.1/hash.c:144:6: note: Shadowed declaration jam-2.6.1/hash.c:168:19: note: Shadow variable jam-2.6.1/hash.c:99:17: style: Variable 'b' can be declared as pointer to const [constVariablePointer] jam-2.6.1/headers.c:52:18: style: Parameter 't' can be declared as pointer to const [constParameterPointer] jam-2.6.1/headers.c:55:8: style: Variable 'hdrrule' can be declared as pointer to const [constVariablePointer] jam-2.6.1/headers.c:89:8: style: Parameter 'hdrscan' can be declared as pointer to const [constParameterPointer] jam-2.6.1/headers.c:56:8: style: Unused variable: hdrcache [unusedVariable] jam-2.6.1/fileunix.c:190:14: style:inconclusive: Function 'file_archscan' argument 1 names different: declaration 'arch' definition 'archive'. [funcArgNamesDifferent] jam-2.6.1/filesys.h:16:33: note: Function 'file_archscan' argument 1 names different: declaration 'arch' definition 'archive'. jam-2.6.1/fileunix.c:190:14: note: Function 'file_archscan' argument 1 names different: declaration 'arch' definition 'archive'. jam-2.6.1/fileunix.c:118:17: style: Variable 'dirent' can be declared as pointer to const [constVariablePointer] jam-2.6.1/fileunix.c:270:9: style: Variable 'src' can be declared as pointer to const [constVariablePointer] jam-2.6.1/jam.c:169:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jamgram.y:130:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable parse [valueFlowBailoutIncompleteVar] jam-2.6.1/lists.c:115:9: style: Parameter 'nl' can be declared as pointer to const [constParameterPointer] jam-2.6.1/lists.c:129:8: style: Parameter 'l' can be declared as pointer to const [constParameterPointer] jam-2.6.1/lists.c:165:19: style: Parameter 'l' can be declared as pointer to const [constParameterPointer] jam-2.6.1/lists.c:176:31: style: Parameter 'l' can be declared as pointer to const [constParameterPointer] jam-2.6.1/lists.c:214:20: style: Parameter 'l' can be declared as pointer to const [constParameterPointer] jam-2.6.1/make1.c:301:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] jam-2.6.1/mkjambase.c:27:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jam-2.6.1/mkjambase.c:37:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jam-2.6.1/mkjambase.c:83:13: style: Local variable 'p' shadows outer variable [shadowVariable] jam-2.6.1/mkjambase.c:32:8: note: Shadowed declaration jam-2.6.1/mkjambase.c:83:13: note: Shadow variable jam-2.6.1/mkjambase.c:32:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] jam-2.6.1/mkjambase.c:83:13: style: Variable 'p' can be declared as pointer to const [constVariablePointer] jam-2.6.1/newstr.c:61:14: warning: If memory allocation fails, then there is a possible null pointer dereference: m [nullPointerOutOfMemory] jam-2.6.1/newstr.c:55:30: note: Assuming allocation function fails jam-2.6.1/newstr.c:55:16: note: Assignment 'm=(char*)malloc(l+1)', assigned value is 0 jam-2.6.1/newstr.c:61:14: note: Null pointer dereference jam-2.6.1/newstr.c:45:9: style: Variable 'str' is not assigned a value. [unassignedVariable] jam-2.6.1/expand.c:184:12: style: Variable 'vars' can be declared as pointer to const [constVariablePointer] jam-2.6.1/expand.c:274:13: style: Variable 'rem' can be declared as pointer to const [constVariablePointer] jam-2.6.1/expand.c:520:13: style: Parameter 'edits' can be declared as pointer to const [constParameterPointer] jam-2.6.1/option.c:65:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable val [valueFlowBailoutIncompleteVar] jam-2.6.1/parse.c:84:2: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] jam-2.6.1/parse.c:82:28: note: Assuming allocation function fails jam-2.6.1/parse.c:82:13: note: Assignment 'p=(struct PARSE*)malloc(sizeof(struct PARSE))', assigned value is 0 jam-2.6.1/parse.c:84:2: note: Null pointer dereference jam-2.6.1/parse.c:85:2: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] jam-2.6.1/parse.c:82:28: note: Assuming allocation function fails jam-2.6.1/parse.c:82:13: note: Assignment 'p=(struct PARSE*)malloc(sizeof(struct PARSE))', assigned value is 0 jam-2.6.1/parse.c:85:2: note: Null pointer dereference jam-2.6.1/parse.c:86:2: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] jam-2.6.1/parse.c:82:28: note: Assuming allocation function fails jam-2.6.1/parse.c:82:13: note: Assignment 'p=(struct PARSE*)malloc(sizeof(struct PARSE))', assigned value is 0 jam-2.6.1/parse.c:86:2: note: Null pointer dereference jam-2.6.1/parse.c:87:2: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] jam-2.6.1/parse.c:82:28: note: Assuming allocation function fails jam-2.6.1/parse.c:82:13: note: Assignment 'p=(struct PARSE*)malloc(sizeof(struct PARSE))', assigned value is 0 jam-2.6.1/parse.c:87:2: note: Null pointer dereference jam-2.6.1/parse.c:88:2: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] jam-2.6.1/parse.c:82:28: note: Assuming allocation function fails jam-2.6.1/parse.c:82:13: note: Assignment 'p=(struct PARSE*)malloc(sizeof(struct PARSE))', assigned value is 0 jam-2.6.1/parse.c:88:2: note: Null pointer dereference jam-2.6.1/parse.c:89:2: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] jam-2.6.1/parse.c:82:28: note: Assuming allocation function fails jam-2.6.1/parse.c:82:13: note: Assignment 'p=(struct PARSE*)malloc(sizeof(struct PARSE))', assigned value is 0 jam-2.6.1/parse.c:89:2: note: Null pointer dereference jam-2.6.1/parse.c:90:2: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] jam-2.6.1/parse.c:82:28: note: Assuming allocation function fails jam-2.6.1/parse.c:82:13: note: Assignment 'p=(struct PARSE*)malloc(sizeof(struct PARSE))', assigned value is 0 jam-2.6.1/parse.c:90:2: note: Null pointer dereference jam-2.6.1/parse.c:91:2: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] jam-2.6.1/parse.c:82:28: note: Assuming allocation function fails jam-2.6.1/parse.c:82:13: note: Assignment 'p=(struct PARSE*)malloc(sizeof(struct PARSE))', assigned value is 0 jam-2.6.1/parse.c:91:2: note: Null pointer dereference jam-2.6.1/parse.c:92:2: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] jam-2.6.1/parse.c:82:28: note: Assuming allocation function fails jam-2.6.1/parse.c:82:13: note: Assignment 'p=(struct PARSE*)malloc(sizeof(struct PARSE))', assigned value is 0 jam-2.6.1/parse.c:92:2: note: Null pointer dereference jam-2.6.1/parse.c:93:2: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] jam-2.6.1/parse.c:82:28: note: Assuming allocation function fails jam-2.6.1/parse.c:82:13: note: Assignment 'p=(struct PARSE*)malloc(sizeof(struct PARSE))', assigned value is 0 jam-2.6.1/parse.c:93:2: note: Null pointer dereference jam-2.6.1/parse.c:99:24: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] jam-2.6.1/parse.c:82:28: note: Assuming allocation function fails jam-2.6.1/parse.c:82:13: note: Assignment 'p=(struct PARSE*)malloc(sizeof(struct PARSE))', assigned value is 0 jam-2.6.1/parse.c:99:24: note: Null pointer dereference jam-2.6.1/make1.c:502:8: style: Local variable 'cmd' shadows outer variable [shadowVariable] jam-2.6.1/make1.c:432:15: note: Shadowed declaration jam-2.6.1/make1.c:502:8: note: Shadow variable jam-2.6.1/make1.c:389:12: style: Variable 'targets' can be declared as pointer to const [constVariablePointer] jam-2.6.1/make1.c:581:12: style: Variable 'm' can be declared as pointer to const [constVariablePointer] jam-2.6.1/make1.c:604:22: style: Parameter 'vars' can be declared as pointer to const [constParameterPointer] jam-2.6.1/make1.c:610:12: style: Variable 'l' can be declared as pointer to const [constVariablePointer] jam-2.6.1/make1.c:432:15: style: Unused variable: cmd [unusedVariable] jam-2.6.1/scan.c:130:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] jam-2.6.1/scan.c:242:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] jam-2.6.1/rules.c:112:2: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] jam-2.6.1/rules.c:110:22: note: Assuming allocation function fails jam-2.6.1/rules.c:110:6: note: Assignment 't=(struct TARGET*)malloc(sizeof(*t))', assigned value is 0 jam-2.6.1/rules.c:112:2: note: Null pointer dereference jam-2.6.1/rules.c:113:2: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] jam-2.6.1/rules.c:110:22: note: Assuming allocation function fails jam-2.6.1/rules.c:110:6: note: Assignment 't=(struct TARGET*)malloc(sizeof(*t))', assigned value is 0 jam-2.6.1/rules.c:113:2: note: Null pointer dereference jam-2.6.1/rules.c:113:17: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] jam-2.6.1/rules.c:110:22: note: Assuming allocation function fails jam-2.6.1/rules.c:110:6: note: Assignment 't=(struct TARGET*)malloc(sizeof(*t))', assigned value is 0 jam-2.6.1/rules.c:113:17: note: Null pointer dereference jam-2.6.1/rules.c:115:2: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] jam-2.6.1/rules.c:110:22: note: Assuming allocation function fails jam-2.6.1/rules.c:110:6: note: Assignment 't=(struct TARGET*)malloc(sizeof(*t))', assigned value is 0 jam-2.6.1/rules.c:115:2: note: Null pointer dereference jam-2.6.1/rules.c:165:2: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] jam-2.6.1/rules.c:164:23: note: Assuming allocation function fails jam-2.6.1/rules.c:164:6: note: Assignment 'c=(struct TARGETS*)malloc(sizeof(struct TARGETS))', assigned value is 0 jam-2.6.1/rules.c:165:2: note: Null pointer dereference jam-2.6.1/rules.c:212:2: warning: If memory allocation fails, then there is a possible null pointer dereference: actions [nullPointerOutOfMemory] jam-2.6.1/rules.c:210:38: note: Assuming allocation function fails jam-2.6.1/rules.c:210:21: note: Assignment 'actions=(struct ACTIONS*)malloc(sizeof(struct ACTIONS))', assigned value is 0 jam-2.6.1/rules.c:212:2: note: Null pointer dereference jam-2.6.1/rules.c:253:6: warning: If memory allocation fails, then there is a possible null pointer dereference: v [nullPointerOutOfMemory] jam-2.6.1/rules.c:252:28: note: Assuming allocation function fails jam-2.6.1/rules.c:252:10: note: Assignment 'v=(struct SETTINGS*)malloc(sizeof(*v))', assigned value is 0 jam-2.6.1/rules.c:253:6: note: Null pointer dereference jam-2.6.1/rules.c:254:6: warning: If memory allocation fails, then there is a possible null pointer dereference: v [nullPointerOutOfMemory] jam-2.6.1/rules.c:252:28: note: Assuming allocation function fails jam-2.6.1/rules.c:252:10: note: Assignment 'v=(struct SETTINGS*)malloc(sizeof(*v))', assigned value is 0 jam-2.6.1/rules.c:254:6: note: Null pointer dereference jam-2.6.1/rules.c:255:6: warning: If memory allocation fails, then there is a possible null pointer dereference: v [nullPointerOutOfMemory] jam-2.6.1/rules.c:252:28: note: Assuming allocation function fails jam-2.6.1/rules.c:252:10: note: Assignment 'v=(struct SETTINGS*)malloc(sizeof(*v))', assigned value is 0 jam-2.6.1/rules.c:255:6: note: Null pointer dereference jam-2.6.1/rules.c:305:6: warning: If memory allocation fails, then there is a possible null pointer dereference: v [nullPointerOutOfMemory] jam-2.6.1/rules.c:304:38: note: Assuming allocation function fails jam-2.6.1/rules.c:304:20: note: Assignment 'v=(struct SETTINGS*)malloc(sizeof(*v))', assigned value is 0 jam-2.6.1/rules.c:305:6: note: Null pointer dereference jam-2.6.1/rules.c:306:6: warning: If memory allocation fails, then there is a possible null pointer dereference: v [nullPointerOutOfMemory] jam-2.6.1/rules.c:304:38: note: Assuming allocation function fails jam-2.6.1/rules.c:304:20: note: Assignment 'v=(struct SETTINGS*)malloc(sizeof(*v))', assigned value is 0 jam-2.6.1/rules.c:306:6: note: Null pointer dereference jam-2.6.1/rules.c:307:6: warning: If memory allocation fails, then there is a possible null pointer dereference: v [nullPointerOutOfMemory] jam-2.6.1/rules.c:304:38: note: Assuming allocation function fails jam-2.6.1/rules.c:304:20: note: Assignment 'v=(struct SETTINGS*)malloc(sizeof(*v))', assigned value is 0 jam-2.6.1/rules.c:307:6: note: Null pointer dereference jam-2.6.1/rules.c:106:27: style:inconclusive: Function 'copytarget' argument 1 names different: declaration 't' definition 'ot'. [funcArgNamesDifferent] jam-2.6.1/rules.h:169:35: note: Function 'copytarget' argument 1 names different: declaration 't' definition 'ot'. jam-2.6.1/rules.c:106:27: note: Function 'copytarget' argument 1 names different: declaration 't' definition 'ot'. jam-2.6.1/rules.c:233:12: style:inconclusive: Function 'addsettings' argument 1 names different: declaration 'v' definition 'head'. [funcArgNamesDifferent] jam-2.6.1/rules.h:175:34: note: Function 'addsettings' argument 1 names different: declaration 'v' definition 'head'. jam-2.6.1/rules.c:233:12: note: Function 'addsettings' argument 1 names different: declaration 'v' definition 'head'. jam-2.6.1/rules.c:235:14: style:inconclusive: Function 'addsettings' argument 3 names different: declaration 'sym' definition 'symbol'. [funcArgNamesDifferent] jam-2.6.1/rules.h:175:62: note: Function 'addsettings' argument 3 names different: declaration 'sym' definition 'symbol'. jam-2.6.1/rules.c:235:14: note: Function 'addsettings' argument 3 names different: declaration 'sym' definition 'symbol'. jam-2.6.1/rules.c:236:8: style:inconclusive: Function 'addsettings' argument 4 names different: declaration 'val' definition 'value'. [funcArgNamesDifferent] jam-2.6.1/rules.h:175:73: note: Function 'addsettings' argument 4 names different: declaration 'val' definition 'value'. jam-2.6.1/rules.c:236:8: note: Function 'addsettings' argument 4 names different: declaration 'val' definition 'value'. jam-2.6.1/rules.c:298:25: style:inconclusive: Function 'copysettings' argument 1 names different: declaration 'v' definition 'from'. [funcArgNamesDifferent] jam-2.6.1/rules.h:176:35: note: Function 'copysettings' argument 1 names different: declaration 'v' definition 'from'. jam-2.6.1/rules.c:298:25: note: Function 'copysettings' argument 1 names different: declaration 'v' definition 'from'. jam-2.6.1/rules.c:304:16: style: Local variable 'v' shadows outer variable [shadowVariable] jam-2.6.1/rules.c:300:23: note: Shadowed declaration jam-2.6.1/rules.c:304:16: note: Shadow variable jam-2.6.1/rules.c:141:9: style: Parameter 'targets' can be declared as pointer to const [constParameterPointer] jam-2.6.1/rules.c:188:11: style: Unused variable: c [unusedVariable] jam-2.6.1/rules.c:300:23: style: Unused variable: v [unusedVariable] jam-2.6.1/search.c:27:8: style: Variable 'varlist' can be declared as pointer to const [constVariablePointer] jam-2.6.1/scan.c:103:2: warning: If memory allocation fails, then there is a possible null pointer dereference: i [nullPointerOutOfMemory] jam-2.6.1/scan.c:99:46: note: Assuming allocation function fails jam-2.6.1/scan.c:99:22: note: Assignment 'i=(struct include*)malloc(sizeof(*i))', assigned value is 0 jam-2.6.1/scan.c:103:2: note: Null pointer dereference jam-2.6.1/scan.c:104:2: warning: If memory allocation fails, then there is a possible null pointer dereference: i [nullPointerOutOfMemory] jam-2.6.1/scan.c:99:46: note: Assuming allocation function fails jam-2.6.1/scan.c:99:22: note: Assignment 'i=(struct include*)malloc(sizeof(*i))', assigned value is 0 jam-2.6.1/scan.c:104:2: note: Null pointer dereference jam-2.6.1/scan.c:105:2: warning: If memory allocation fails, then there is a possible null pointer dereference: i [nullPointerOutOfMemory] jam-2.6.1/scan.c:99:46: note: Assuming allocation function fails jam-2.6.1/scan.c:99:22: note: Assignment 'i=(struct include*)malloc(sizeof(*i))', assigned value is 0 jam-2.6.1/scan.c:105:2: note: Null pointer dereference jam-2.6.1/scan.c:106:2: warning: If memory allocation fails, then there is a possible null pointer dereference: i [nullPointerOutOfMemory] jam-2.6.1/scan.c:99:46: note: Assuming allocation function fails jam-2.6.1/scan.c:99:22: note: Assignment 'i=(struct include*)malloc(sizeof(*i))', assigned value is 0 jam-2.6.1/scan.c:106:2: note: Null pointer dereference jam-2.6.1/scan.c:107:2: warning: If memory allocation fails, then there is a possible null pointer dereference: i [nullPointerOutOfMemory] jam-2.6.1/scan.c:99:46: note: Assuming allocation function fails jam-2.6.1/scan.c:99:22: note: Assignment 'i=(struct include*)malloc(sizeof(*i))', assigned value is 0 jam-2.6.1/scan.c:107:2: note: Null pointer dereference jam-2.6.1/scan.c:108:2: warning: If memory allocation fails, then there is a possible null pointer dereference: i [nullPointerOutOfMemory] jam-2.6.1/scan.c:99:46: note: Assuming allocation function fails jam-2.6.1/scan.c:99:22: note: Assignment 'i=(struct include*)malloc(sizeof(*i))', assigned value is 0 jam-2.6.1/scan.c:108:2: note: Null pointer dereference jam-2.6.1/scan.c:266:12: style: Local variable 'b' shadows outer variable [shadowVariable] jam-2.6.1/scan.c:211:8: note: Shadowed declaration jam-2.6.1/scan.c:266:12: note: Shadow variable jam-2.6.1/scan.c:385:19: style: Parameter 's' can be declared as pointer to const [constParameterPointer] jam-2.6.1/timestamp.c:105:14: style: Local variable 'binding' shadows outer variable [shadowVariable] jam-2.6.1/timestamp.c:68:10: note: Shadowed declaration jam-2.6.1/timestamp.c:105:14: note: Shadow variable jam-2.6.1/timestamp.c:105:24: style: Local variable 'b' shadows outer variable [shadowVariable] jam-2.6.1/timestamp.c:68:20: note: Shadowed declaration jam-2.6.1/timestamp.c:105:24: note: Shadow variable jam-2.6.1/timestamp.c:130:14: style: Local variable 'binding' shadows outer variable [shadowVariable] jam-2.6.1/timestamp.c:68:10: note: Shadowed declaration jam-2.6.1/timestamp.c:130:14: note: Shadow variable jam-2.6.1/timestamp.c:130:24: style: Local variable 'b' shadows outer variable [shadowVariable] jam-2.6.1/timestamp.c:68:20: note: Shadowed declaration jam-2.6.1/timestamp.c:130:24: note: Shadow variable jam-2.6.1/timestamp.c:172:15: style: Local variable 'bindhash' shadows outer variable [shadowVariable] jam-2.6.1/timestamp.c:45:21: note: Shadowed declaration jam-2.6.1/timestamp.c:172:15: note: Shadow variable jam-2.6.1/timestamp.c:64:8: style: Parameter 'target' can be declared as pointer to const [constParameterPointer] jam-2.6.1/variable.c:142:9: style: Variable 'out0' can be declared as pointer to const [constVariablePointer] jam-2.6.1/variable.c:143:8: style: Variable 'oute' can be declared as pointer to const [constVariablePointer] jam-2.6.1/regexp.c:543:3: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] jam-2.6.1/regexp.c:548:3: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] jam-2.6.1/regexp.c:553:4: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] jam-2.6.1/regexp.c:1068:4: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] jam-2.6.1/regexp.c:724:8: style: Parameter 'val' can be declared as pointer to const [constParameterPointer] jam-2.6.1/regexp.c:798:17: style: Variable 's' can be declared as pointer to const [constVariablePointer] jam-2.6.1/regexp.c:940:20: style: Variable 'opnd' can be declared as pointer to const [constVariablePointer] jam-2.6.1/regexp.c:1097:17: style: Variable 'opnd' can be declared as pointer to const [constVariablePointer] jam-2.6.1/make.c:498:21: style:inconclusive: Function 'make0sort' argument 1 names different: declaration 'c' definition 'chain'. [funcArgNamesDifferent] jam-2.6.1/make.c:83:37: note: Function 'make0sort' argument 1 names different: declaration 'c' definition 'chain'. jam-2.6.1/make.c:498:21: note: Function 'make0sort' argument 1 names different: declaration 'c' definition 'chain'. jam-2.6.1/make.c:77:6: style: struct member 'COUNTS::made' is never used. [unusedStructMember] jam-2.6.1/make.c:179:15: style: Unused variable: d [unusedVariable] diff: head jam-2.6.1/builtins.c:132:8: style: Variable 'l' can be declared as pointer to const [constVariablePointer] head jam-2.6.1/builtins.c:205:8: style: Variable 'l' can be declared as pointer to const [constVariablePointer] head jam-2.6.1/builtins.c:230:9: style: Variable 'l' can be declared as pointer to const [constVariablePointer] head jam-2.6.1/builtins.c:255:8: style: Variable 'l' can be declared as pointer to const [constVariablePointer] head jam-2.6.1/builtins.c:279:12: style: Variable 'r' can be declared as pointer to const [constVariablePointer] head jam-2.6.1/builtins.c:279:8: style: Variable 'l' can be declared as pointer to const [constVariablePointer] head jam-2.6.1/compile.c:162:18: style: Variable 's' can be declared as pointer to const [constVariablePointer] head jam-2.6.1/compile.c:264:8: style: Variable 'l' can be declared as pointer to const [constVariablePointer] head jam-2.6.1/compile.c:410:8: style: Variable 'l' can be declared as pointer to const [constVariablePointer] head jam-2.6.1/compile.c:518:13: style: Variable 'l' can be declared as pointer to const [constVariablePointer] head jam-2.6.1/compile.c:599:12: style: Variable 'l' can be declared as pointer to const [constVariablePointer] head jam-2.6.1/compile.c:678:8: style: Variable 'l' can be declared as pointer to const [constVariablePointer] head jam-2.6.1/compile.c:716:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] head jam-2.6.1/compile.c:804:8: style: Variable 'ts' can be declared as pointer to const [constVariablePointer] head jam-2.6.1/compile.c:824:12: style: Variable 'l' can be declared as pointer to const [constVariablePointer] head jam-2.6.1/execunix.c:159:8: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] head jam-2.6.1/execunix.c:162:8: style: Parameter 'shell' can be declared as pointer to const [constParameterPointer] head jam-2.6.1/expand.c:184:12: style: Variable 'vars' can be declared as pointer to const [constVariablePointer] head jam-2.6.1/expand.c:274:13: style: Variable 'rem' can be declared as pointer to const [constVariablePointer] head jam-2.6.1/headers.c:89:8: style: Parameter 'hdrscan' can be declared as pointer to const [constParameterPointer] head jam-2.6.1/lists.c:115:9: style: Parameter 'nl' can be declared as pointer to const [constParameterPointer] head jam-2.6.1/lists.c:129:8: style: Parameter 'l' can be declared as pointer to const [constParameterPointer] head jam-2.6.1/lists.c:165:19: style: Parameter 'l' can be declared as pointer to const [constParameterPointer] head jam-2.6.1/lists.c:176:31: style: Parameter 'l' can be declared as pointer to const [constParameterPointer] head jam-2.6.1/lists.c:214:20: style: Parameter 'l' can be declared as pointer to const [constParameterPointer] head jam-2.6.1/make1.c:389:12: style: Variable 'targets' can be declared as pointer to const [constVariablePointer] head jam-2.6.1/make1.c:581:12: style: Variable 'm' can be declared as pointer to const [constVariablePointer] head jam-2.6.1/make1.c:604:22: style: Parameter 'vars' can be declared as pointer to const [constParameterPointer] head jam-2.6.1/make1.c:610:12: style: Variable 'l' can be declared as pointer to const [constVariablePointer] head jam-2.6.1/mkjambase.c:83:13: style: Variable 'p' can be declared as pointer to const [constVariablePointer] head jam-2.6.1/rules.c:141:9: style: Parameter 'targets' can be declared as pointer to const [constParameterPointer] head jam-2.6.1/search.c:27:8: style: Variable 'varlist' can be declared as pointer to const [constVariablePointer] head jam-2.6.1/timestamp.c:64:8: style: Parameter 'target' can be declared as pointer to const [constParameterPointer] DONE