2025-05-09 04:42 ftp://ftp.de.debian.org/debian/pool/main/a/acme/acme_0.97~svn20211115+ds.orig.tar.xz 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 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: 66c9938 (2025-05-08 13:55:11 +0200) count: 70 70 elapsed-time: 0.6 0.5 head-timing-info: old-timing-info: head results: acme-0.97~svn20211115+ds/contrib/toacme/src/ab3.c:109:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] acme-0.97~svn20211115+ds/contrib/toacme/src/f8ab.c:263:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] acme-0.97~svn20211115+ds/contrib/toacme/src/ab.c:191:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] acme-0.97~svn20211115+ds/contrib/toacme/src/ab.c:361:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] acme-0.97~svn20211115+ds/contrib/toacme/src/ab.c:513:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] acme-0.97~svn20211115+ds/contrib/toacme/src/io.c:39:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] acme-0.97~svn20211115+ds/contrib/toacme/src/main.c:45:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] acme-0.97~svn20211115+ds/contrib/toacme/src/prof.c:64:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] acme-0.97~svn20211115+ds/contrib/toacme/src/vis.c:44:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] acme-0.97~svn20211115+ds/src/_dos.c:21:8: style: Variable 'env_var' can be declared as pointer to const [constVariablePointer] acme-0.97~svn20211115+ds/src/_riscos.c:34:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RISCOSFLAG_THROWN [valueFlowBailoutIncompleteVar] acme-0.97~svn20211115+ds/src/_riscos.c:84:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RISCOSFLAG_THROWBACK [valueFlowBailoutIncompleteVar] acme-0.97~svn20211115+ds/src/_std.c:21:8: style: Variable 'env_var' can be declared as pointer to const [constVariablePointer] acme-0.97~svn20211115+ds/src/cliargs.c:59:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] acme-0.97~svn20211115+ds/src/cliargs.c:82:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] acme-0.97~svn20211115+ds/src/cliargs.c:102:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] acme-0.97~svn20211115+ds/src/acme.c:174:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] acme-0.97~svn20211115+ds/src/acme.c:204:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] acme-0.97~svn20211115+ds/src/acme.c:230:93: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] acme-0.97~svn20211115+ds/src/acme.c:268:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] acme-0.97~svn20211115+ds/src/acme.c:350:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] acme-0.97~svn20211115+ds/src/acme.c:372:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] acme-0.97~svn20211115+ds/src/acme.c:383:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] acme-0.97~svn20211115+ds/src/acme.c:426:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] acme-0.97~svn20211115+ds/src/acme.c:438:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] acme-0.97~svn20211115+ds/src/acme.c:495:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] acme-0.97~svn20211115+ds/src/acme.c:542:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] acme-0.97~svn20211115+ds/src/acme.c:620:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] acme-0.97~svn20211115+ds/src/dynabuf.c:57:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] acme-0.97~svn20211115+ds/src/dynabuf.c:82:40: style: Parameter 'db' can be declared as pointer to const [constParameterPointer] acme-0.97~svn20211115+ds/src/dynabuf.c:118:8: style: Variable 'read' can be declared as pointer to const [constVariablePointer] acme-0.97~svn20211115+ds/src/global.c:118:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] acme-0.97~svn20211115+ds/src/global.c:464:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] acme-0.97~svn20211115+ds/src/input.c:150:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] acme-0.97~svn20211115+ds/src/global.c:524:20: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] acme-0.97~svn20211115+ds/src/global.c:535:20: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] acme-0.97~svn20211115+ds/src/global.c:544:20: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] acme-0.97~svn20211115+ds/src/global.c:545:20: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] acme-0.97~svn20211115+ds/src/global.c:556:20: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] acme-0.97~svn20211115+ds/src/global.c:557:20: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] acme-0.97~svn20211115+ds/src/global.c:128:26: style:inconclusive: Function 'safe_malloc' argument 1 names different: declaration 'amount' definition 'size'. [funcArgNamesDifferent] acme-0.97~svn20211115+ds/src/global.h:125:33: note: Function 'safe_malloc' argument 1 names different: declaration 'amount' definition 'size'. acme-0.97~svn20211115+ds/src/global.c:128:26: note: Function 'safe_malloc' argument 1 names different: declaration 'amount' definition 'size'. acme-0.97~svn20211115+ds/src/global.c:410:32: style:inconclusive: Function 'Throw_warning' argument 1 names different: declaration 'msg' definition 'message'. [funcArgNamesDifferent] acme-0.97~svn20211115+ds/src/global.h:143:39: note: Function 'Throw_warning' argument 1 names different: declaration 'msg' definition 'message'. acme-0.97~svn20211115+ds/src/global.c:410:32: note: Function 'Throw_warning' argument 1 names different: declaration 'msg' definition 'message'. acme-0.97~svn20211115+ds/src/global.c:419:43: style:inconclusive: Function 'Throw_first_pass_warning' argument 1 names different: declaration 'msg' definition 'message'. [funcArgNamesDifferent] acme-0.97~svn20211115+ds/src/global.h:145:50: note: Function 'Throw_first_pass_warning' argument 1 names different: declaration 'msg' definition 'message'. acme-0.97~svn20211115+ds/src/global.c:419:43: note: Function 'Throw_first_pass_warning' argument 1 names different: declaration 'msg' definition 'message'. acme-0.97~svn20211115+ds/src/global.c:431:30: style:inconclusive: Function 'Throw_error' argument 1 names different: declaration 'msg' definition 'message'. [funcArgNamesDifferent] acme-0.97~svn20211115+ds/src/global.h:151:37: note: Function 'Throw_error' argument 1 names different: declaration 'msg' definition 'message'. acme-0.97~svn20211115+ds/src/global.c:431:30: note: Function 'Throw_error' argument 1 names different: declaration 'msg' definition 'message'. acme-0.97~svn20211115+ds/src/global.c:448:38: style:inconclusive: Function 'Throw_serious_error' argument 1 names different: declaration 'msg' definition 'message'. [funcArgNamesDifferent] acme-0.97~svn20211115+ds/src/global.h:156:45: note: Function 'Throw_serious_error' argument 1 names different: declaration 'msg' definition 'message'. acme-0.97~svn20211115+ds/src/global.c:448:38: note: Function 'Throw_serious_error' argument 1 names different: declaration 'msg' definition 'message'. acme-0.97~svn20211115+ds/src/global.c:461:28: style:inconclusive: Function 'Bug_found' argument 1 names different: declaration 'msg' definition 'message'. [funcArgNamesDifferent] acme-0.97~svn20211115+ds/src/global.h:158:35: note: Function 'Bug_found' argument 1 names different: declaration 'msg' definition 'message'. acme-0.97~svn20211115+ds/src/global.c:461:28: note: Function 'Bug_found' argument 1 names different: declaration 'msg' definition 'message'. acme-0.97~svn20211115+ds/src/global.c:474:9: style: Variable 'read' can be declared as pointer to const [constVariablePointer] acme-0.97~svn20211115+ds/src/input.c:632:28: style: Condition 'Input_unescape_dynabuf(start_of_string)' is always false [knownConditionTrueFalse] acme-0.97~svn20211115+ds/src/input.c:632:28: note: Calling function 'Input_unescape_dynabuf' returns 0 acme-0.97~svn20211115+ds/src/input.c:632:28: note: Condition 'Input_unescape_dynabuf(start_of_string)' is always false acme-0.97~svn20211115+ds/src/input.c:399:32: style:inconclusive: Function 'Input_unescape_dynabuf' argument 1 names different: declaration 'start_index' definition 'read_index'. [funcArgNamesDifferent] acme-0.97~svn20211115+ds/src/input.h:80:39: note: Function 'Input_unescape_dynabuf' argument 1 names different: declaration 'start_index' definition 'read_index'. acme-0.97~svn20211115+ds/src/input.c:399:32: note: Function 'Input_unescape_dynabuf' argument 1 names different: declaration 'start_index' definition 'read_index'. acme-0.97~svn20211115+ds/src/input.c:578:33: style:inconclusive: Function 'Input_read_filename' argument 1 names different: declaration 'library_allowed' definition 'allow_library'. [funcArgNamesDifferent] acme-0.97~svn20211115+ds/src/input.h:119:40: note: Function 'Input_read_filename' argument 1 names different: declaration 'library_allowed' definition 'allow_library'. acme-0.97~svn20211115+ds/src/input.c:578:33: note: Function 'Input_read_filename' argument 1 names different: declaration 'library_allowed' definition 'allow_library'. acme-0.97~svn20211115+ds/src/input.c:581:8: style: Variable 'lib_prefix' can be declared as pointer to const [constVariablePointer] acme-0.97~svn20211115+ds/src/input.c:721:8: warning: Conversion of char literal '/' to bool always evaluates to true. [incorrectCharBooleanError] acme-0.97~svn20211115+ds/src/macro.c:137:16: style: Variable 'original_macro' can be declared as pointer to const [constVariablePointer] acme-0.97~svn20211115+ds/src/output.c:498:40: style:inconclusive: Function 'vcpu_set_pc' argument 2 names different: declaration 'flags' definition 'segment_flags'. [funcArgNamesDifferent] acme-0.97~svn20211115+ds/src/output.h:77:47: note: Function 'vcpu_set_pc' argument 2 names different: declaration 'flags' definition 'segment_flags'. acme-0.97~svn20211115+ds/src/output.c:498:40: note: Function 'vcpu_set_pc' argument 2 names different: declaration 'flags' definition 'segment_flags'. acme-0.97~svn20211115+ds/src/alu.c:708:48: style:inconclusive: Boolean expression 'GotByte>='0'' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] acme-0.97~svn20211115+ds/src/alu.c:310:93: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] acme-0.97~svn20211115+ds/src/alu.c:2303:41: style: Parameter 'self' can be declared as pointer to const. However it seems that 'object_no_op' is a callback function, if 'self' is declared with const you might also need to cast function pointer(s). [constParameterCallback] acme-0.97~svn20211115+ds/src/alu.c:2439:2: note: You might need to cast the function pointer here acme-0.97~svn20211115+ds/src/alu.c:2303:41: note: Parameter 'self' can be declared as pointer to const acme-0.97~svn20211115+ds/src/alu.c:2386:73: style: Parameter 'target' can be declared as pointer to const [constParameterPointer] acme-0.97~svn20211115+ds/src/pseudoopcodes.c:505:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] acme-0.97~svn20211115+ds/src/pseudoopcodes.c:1417:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable then [valueFlowBailoutIncompleteVar] acme-0.97~svn20211115+ds/src/mnemo.c:646:58: style: Parameter 'argument' can be declared as pointer to const [constParameterPointer] acme-0.97~svn20211115+ds/src/mnemo.c:912:48: style: Parameter 'result' can be declared as pointer to const [constParameterPointer] acme-0.97~svn20211115+ds/src/symbol.c:144:62: style:inconclusive: Function 'symbol_set_object' argument 2 names different: declaration 'new_obj' definition 'new_value'. [funcArgNamesDifferent] acme-0.97~svn20211115+ds/src/symbol.h:41:69: note: Function 'symbol_set_object' argument 2 names different: declaration 'new_obj' definition 'new_value'. acme-0.97~svn20211115+ds/src/symbol.c:144:62: note: Function 'symbol_set_object' argument 2 names different: declaration 'new_obj' definition 'new_value'. acme-0.97~svn20211115+ds/src/symbol.c:31:17: style: Variable 'symbol' can be declared as pointer to const [constVariablePointer] acme-0.97~svn20211115+ds/src/symbol.c:75:17: style: Variable 'symbol' can be declared as pointer to const [constVariablePointer] acme-0.97~svn20211115+ds/src/symbol.c:85:17: style: Variable 'symbol' can be declared as pointer to const [constVariablePointer] acme-0.97~svn20211115+ds/src/symbol.c:96:17: style: Variable 'symbol' can be declared as pointer to const [constVariablePointer] acme-0.97~svn20211115+ds/src/tree.c:68:75: style: Parameter 'dyna_buf' can be declared as pointer to const [constParameterPointer] acme-0.97~svn20211115+ds/src/typesystem.c:40:45: style: Parameter 'result' can be declared as pointer to const [constParameterPointer] acme-0.97~svn20211115+ds/src/typesystem.c:54:42: style: Parameter 'result' can be declared as pointer to const [constParameterPointer] diff: DONE