2025-09-14 01:28 ftp://ftp.de.debian.org/debian/pool/main/libm/libmarpa-r2-perl/libmarpa-r2-perl_12.000000.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-79-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.69 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.18.0 head-info: fea194b (2025-09-13 13:40:14 +0200) count: 63 63 elapsed-time: 2.0 2.2 head-timing-info: old-timing-info: head results: marpa.w:26543:1: error: There is an unknown macro here somewhere. Configuration is required. If MARPA_OFF_DEBUG3 is a macro then please configure it. [unknownMacro] marpa_ami.w:590:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] Marpa-R2-12.000000/engine/read_only/marpa_avl.c:231:12: style: Condition 'p==NULL' is always false [knownConditionTrueFalse] Marpa-R2-12.000000/engine/read_only/marpa_avl.c:241:9: style: Condition 'p==NULL' is always false [knownConditionTrueFalse] Marpa-R2-12.000000/engine/read_only/marpa_avl.c:427:9: style: Condition 'p!=NULL' is always true [knownConditionTrueFalse] Marpa-R2-12.000000/engine/read_only/marpa_avl.c:363:25: warning: Either the condition 'trav!=NULL' is redundant or there is possible null pointer dereference: trav. [nullPointerRedundantCheck] Marpa-R2-12.000000/engine/read_only/marpa_avl.c:365:16: note: Assuming that condition 'trav!=NULL' is not redundant Marpa-R2-12.000000/engine/read_only/marpa_avl.c:363:25: note: Null pointer dereference Marpa-R2-12.000000/engine/read_only/marpa_avl.c:422:25: warning: Either the condition 'trav!=NULL' is redundant or there is possible null pointer dereference: trav. [nullPointerRedundantCheck] Marpa-R2-12.000000/engine/read_only/marpa_avl.c:424:16: note: Assuming that condition 'trav!=NULL' is not redundant Marpa-R2-12.000000/engine/read_only/marpa_avl.c:422:25: note: Null pointer dereference Marpa-R2-12.000000/engine/read_only/marpa_avl.c:404:54: style: Parameter 'sought_item' can be declared as pointer to const [constParameterPointer] Marpa-R2-12.000000/engine/read_only/marpa_obs.c:112:40: style:inconclusive: Function 'marpa__obs_free' argument 1 names different: declaration '__obstack' definition 'h'. [funcArgNamesDifferent] Marpa-R2-12.000000/engine/read_only/marpa_obs.h:92:45: note: Function 'marpa__obs_free' argument 1 names different: declaration '__obstack' definition 'h'. Marpa-R2-12.000000/engine/read_only/marpa_obs.c:112:40: note: Function 'marpa__obs_free' argument 1 names different: declaration '__obstack' definition 'h'. Marpa-R2-12.000000/engine/read_only/marpa_tavl.c:687:9: style: Condition 'p!=NULL' is always true [knownConditionTrueFalse] Marpa-R2-12.000000/engine/read_only/marpa_tavl.c:168:24: warning: Either the condition 'tree->tavl_root!=NULL' is redundant or there is possible null pointer dereference: p->tavl_link. [nullPointerRedundantCheck] Marpa-R2-12.000000/engine/read_only/marpa_tavl.c:169:23: note: Assuming that condition 'tree->tavl_root!=NULL' is not redundant Marpa-R2-12.000000/engine/read_only/marpa_tavl.c:168:24: note: Null pointer dereference Marpa-R2-12.000000/engine/read_only/marpa_tavl.c:951:39: style: Parameter 'allocator' can be declared as pointer to const. However it seems that 'tavl_malloc' is a callback function, if 'allocator' is declared with const you might also need to cast function pointer(s). [constParameterCallback] Marpa-R2-12.000000/engine/read_only/marpa_tavl.c:967:5: note: You might need to cast the function pointer here Marpa-R2-12.000000/engine/read_only/marpa_tavl.c:951:39: note: Parameter 'allocator' can be declared as pointer to const Marpa-R2-12.000000/engine/read_only/marpa_tavl.c:958:49: style: Parameter 'allocator' can be declared as pointer to const. However it seems that 'tavl_free' is a callback function, if 'allocator' is declared with const you might also need to cast function pointer(s). [constParameterCallback] Marpa-R2-12.000000/engine/read_only/marpa_tavl.c:968:5: note: You might need to cast the function pointer here Marpa-R2-12.000000/engine/read_only/marpa_tavl.c:958:49: note: Parameter 'allocator' can be declared as pointer to const Marpa-R2-12.000000/engine/read_only/marpa_tavl.c:958:73: style: Parameter 'block' can be declared as pointer to const. However it seems that 'tavl_free' is a callback function, if 'block' is declared with const you might also need to cast function pointer(s). [constParameterCallback] Marpa-R2-12.000000/engine/read_only/marpa_tavl.c:968:5: note: You might need to cast the function pointer here Marpa-R2-12.000000/engine/read_only/marpa_tavl.c:958:73: note: Parameter 'block' can be declared as pointer to const Marpa-R2-12.000000/engine/read_only/tests/runtests.c:328:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Marpa-R2-12.000000/engine/read_only/tests/runtests.c:347:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] Marpa-R2-12.000000/engine/read_only/tests/runtests.c:496:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] Marpa-R2-12.000000/engine/read_only/tests/runtests.c:589:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Marpa-R2-12.000000/engine/read_only/tests/runtests.c:869:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] Marpa-R2-12.000000/engine/read_only/tests/runtests.c:1006:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Marpa-R2-12.000000/engine/read_only/tests/runtests.c:1130:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] Marpa-R2-12.000000/engine/read_only/tests/runtests.c:1404:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] Marpa-R2-12.000000/engine/read_only/tests/runtests.c:1570:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Marpa-R2-12.000000/engine/read_only/tests/runtests.c:1698:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] Marpa-R2-12.000000/engine/read_only/tests/runtests.c:997:32: style: Parameter 'ts' can be declared as pointer to const [constParameterPointer] Marpa-R2-12.000000/engine/read_only/tests/runtests.c:1192:21: style: Variable 'ts' can be declared as pointer to const [constVariablePointer] Marpa-R2-12.000000/engine/read_only/tests/simple/depr_unvalued.c:178:37: error: There is an unknown macro here somewhere. Configuration is required. If UNUSED is a macro then please configure it. [unknownMacro] Marpa-R2-12.000000/engine/read_only/tests/simple/issue92a.c:206:37: error: There is an unknown macro here somewhere. Configuration is required. If UNUSED is a macro then please configure it. [unknownMacro] Marpa-R2-12.000000/engine/read_only/tests/simple/issue92b.c:86:37: error: There is an unknown macro here somewhere. Configuration is required. If UNUSED is a macro then please configure it. [unknownMacro] Marpa-R2-12.000000/engine/read_only/tests/simple/issue92c.c:86:37: error: There is an unknown macro here somewhere. Configuration is required. If UNUSED is a macro then please configure it. [unknownMacro] Marpa-R2-12.000000/engine/read_only/tests/simple/marpa_m_test.c:278:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MARPA_ERR_NONE [valueFlowBailoutIncompleteVar] Marpa-R2-12.000000/engine/read_only/tests/simple/marpa_m_test.c:334:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MARPA_ERR_NONE [valueFlowBailoutIncompleteVar] Marpa-R2-12.000000/engine/read_only/tests/simple/marpa_m_test.c:374:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MARPA_ERR_NONE [valueFlowBailoutIncompleteVar] Marpa-R2-12.000000/engine/read_only/tests/simple/marpa_m_test.c:216:48: style:inconclusive: Function 'rv_std_report' argument 2 names different: declaration 'method' definition 'name'. [funcArgNamesDifferent] Marpa-R2-12.000000/engine/read_only/tests/simple/marpa_m_test.h:53:19: note: Function 'rv_std_report' argument 2 names different: declaration 'method' definition 'name'. Marpa-R2-12.000000/engine/read_only/tests/simple/marpa_m_test.c:216:48: note: Function 'rv_std_report' argument 2 names different: declaration 'method' definition 'name'. Marpa-R2-12.000000/engine/read_only/tests/simple/marpa_m_test.c:328:49: style:inconclusive: Function 'rv_code_report' argument 2 names different: declaration 'method' definition 'name'. [funcArgNamesDifferent] Marpa-R2-12.000000/engine/read_only/tests/simple/marpa_m_test.h:55:20: note: Function 'rv_code_report' argument 2 names different: declaration 'method' definition 'name'. Marpa-R2-12.000000/engine/read_only/tests/simple/marpa_m_test.c:328:49: note: Function 'rv_code_report' argument 2 names different: declaration 'method' definition 'name'. Marpa-R2-12.000000/engine/read_only/tests/simple/marpa_m_test.c:199:16: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] Marpa-R2-12.000000/engine/read_only/tests/simple/marpa_m_test.c:368:11: style: Variable 'rv_seen' can be declared as pointer to const [constVariablePointer] Marpa-R2-12.000000/engine/read_only/tests/simple/nits.c:169:37: error: There is an unknown macro here somewhere. Configuration is required. If UNUSED is a macro then please configure it. [unknownMacro] Marpa-R2-12.000000/engine/read_only/tests/simple/rule1.c:43:37: error: There is an unknown macro here somewhere. Configuration is required. If UNUSED is a macro then please configure it. [unknownMacro] Marpa-R2-12.000000/engine/read_only/tests/simple/trivial.c:96:37: error: There is an unknown macro here somewhere. Configuration is required. If UNUSED is a macro then please configure it. [unknownMacro] Marpa-R2-12.000000/engine/read_only/tests/simple/trivial1.c:178:37: error: There is an unknown macro here somewhere. Configuration is required. If UNUSED is a macro then please configure it. [unknownMacro] Marpa-R2-12.000000/engine/read_only/tests/tap/basic.c:230:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] Marpa-R2-12.000000/engine/read_only/tests/tap/basic.c:351:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] Marpa-R2-12.000000/engine/read_only/tests/tap/basic.c:380:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] Marpa-R2-12.000000/engine/read_only/tests/tap/basic.c:401:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] Marpa-R2-12.000000/engine/read_only/tests/tap/basic.c:419:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] Marpa-R2-12.000000/engine/read_only/tests/tap/basic.c:434:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] Marpa-R2-12.000000/engine/read_only/tests/tap/basic.c:451:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] Marpa-R2-12.000000/engine/read_only/tests/tap/basic.c:471:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] Marpa-R2-12.000000/engine/read_only/tests/tap/basic.c:487:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] Marpa-R2-12.000000/engine/read_only/tests/tap/basic.c:508:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] Marpa-R2-12.000000/engine/read_only/tests/tap/basic.c:526:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] Marpa-R2-12.000000/engine/read_only/tests/tap/basic.c:551:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] Marpa-R2-12.000000/engine/read_only/tests/tap/basic.c:577:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] Marpa-R2-12.000000/engine/read_only/tests/tap/basic.c:612:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] Marpa-R2-12.000000/engine/read_only/tests/tap/basic.c:640:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] Marpa-R2-12.000000/engine/read_only/tests/tap/basic.c:672:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] Marpa-R2-12.000000/engine/read_only/tests/tap/basic.c:691:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] Marpa-R2-12.000000/engine/read_only/tests/tap/basic.c:715:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] Marpa-R2-12.000000/engine/read_only/tests/tap/basic.c:735:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] Marpa-R2-12.000000/engine/read_only/tests/tap/basic.c:763:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] Marpa-R2-12.000000/engine/read_only/tests/tap/basic.c:923:11: style: Variable 'base' can be declared as pointer to const [constVariablePointer] Marpa-R2-12.000000/engine/read_only/tests/tap/float.c:83:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] diff: DONE