2024-04-21 17:27 ftp://ftp.de.debian.org/debian/pool/main/r/r-cran-emoa/r-cran-emoa_0.5-2.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 -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.1.0-20-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.56 compiler: g++ (Debian 12.2.0-14) 12.2.0 cppcheck: head 2.14.0 head-info: ea2e716 (2024-04-21 15:59:20 +0200) count: 65 65 elapsed-time: 0.4 0.4 head-timing-info: old-timing-info: head results: emoa/src/crowding_distance.c:61:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REALSXP [valueFlowBailoutIncompleteVar] emoa/src/dominance.c:83:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LGLSXP [valueFlowBailoutIncompleteVar] emoa/src/dominance.c:129:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INTSXP [valueFlowBailoutIncompleteVar] emoa/src/dominance.c:218:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LGLSXP [valueFlowBailoutIncompleteVar] emoa/src/crowding_distance.c:8:39: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] emoa/src/emoa.c:21:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] emoa/src/eps_ind.c:53:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MAX [valueFlowBailoutIncompleteVar] emoa/src/dominance.c:46:11: style: Variable 'pi' can be declared as pointer to const [constVariablePointer] emoa/src/dominance.c:47:11: style: Variable 'pj' can be declared as pointer to const [constVariablePointer] emoa/src/bitstring.h:36:29: style: Variable 'bs.string[(bit)>>3]' is assigned a value that is never used. [unreadVariable] emoa/src/bitstring.h:40:29: style: Variable 'bs.string[(bit)>>3]' is assigned a value that is never used. [unreadVariable] emoa/src/cec2009.c:340:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REALSXP [valueFlowBailoutIncompleteVar] emoa/src/cec2009.c:341:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REALSXP [valueFlowBailoutIncompleteVar] emoa/src/cec2009.c:342:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REALSXP [valueFlowBailoutIncompleteVar] emoa/src/cec2009.c:343:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REALSXP [valueFlowBailoutIncompleteVar] emoa/src/cec2009.c:344:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REALSXP [valueFlowBailoutIncompleteVar] emoa/src/cec2009.c:345:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REALSXP [valueFlowBailoutIncompleteVar] emoa/src/cec2009.c:346:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REALSXP [valueFlowBailoutIncompleteVar] emoa/src/cec2009.c:347:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REALSXP [valueFlowBailoutIncompleteVar] emoa/src/cec2009.c:348:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REALSXP [valueFlowBailoutIncompleteVar] emoa/src/cec2009.c:349:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REALSXP [valueFlowBailoutIncompleteVar] emoa/src/front_edge.c:19:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LGLSXP [valueFlowBailoutIncompleteVar] emoa/src/front_edge.c:46:13: style: Variable 'point_values' can be declared as pointer to const [constVariablePointer] emoa/src/avl.c:346:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] emoa/src/hypervolume.c:33:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MAX [valueFlowBailoutIncompleteVar] emoa/src/hypervolume.c:82:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REALSXP [valueFlowBailoutIncompleteVar] emoa/src/hypervolume.c:102:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REALSXP [valueFlowBailoutIncompleteVar] emoa/src/hv.c:415:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] emoa/src/hv.c:489:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MAX [valueFlowBailoutIncompleteVar] emoa/src/hypervolume.c:76:3: style: Variable 'ref' can be declared as pointer to const [constVariablePointer] emoa/src/hypervolume.c:95:3: style: Variable 'data' can be declared as pointer to const [constVariablePointer] emoa/src/hypervolume.c:96:3: style: Variable 'ref' can be declared as pointer to const [constVariablePointer] emoa/src/poly_mutation.c:35:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REALSXP [valueFlowBailoutIncompleteVar] emoa/src/poly_mutation.c:23:3: style: Variable 'x' can be declared as pointer to const [constVariablePointer] emoa/src/poly_mutation.c:24:3: style: Variable 'lb' can be declared as pointer to const [constVariablePointer] emoa/src/poly_mutation.c:25:3: style: Variable 'ub' can be declared as pointer to const [constVariablePointer] emoa/src/hv.c:329:56: warning: Either the condition 'pp->next[2]->x==NULL' is redundant or there is possible null pointer dereference: pp->next[2]->x. [nullPointerRedundantCheck] emoa/src/hv.c:333:24: note: Assuming that condition 'pp->next[2]->x==NULL' is not redundant emoa/src/hv.c:329:56: note: Null pointer dereference emoa/src/sb_crossover.c:55:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REALSXP [valueFlowBailoutIncompleteVar] emoa/src/sb_crossover.c:39:3: style: Variable 'lb' can be declared as pointer to const [constVariablePointer] emoa/src/sb_crossover.c:40:3: style: Variable 'ub' can be declared as pointer to const [constVariablePointer] emoa/src/r_ind.c:188:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MAX [valueFlowBailoutIncompleteVar] emoa/src/r_ind.c:211:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MAX [valueFlowBailoutIncompleteVar] emoa/src/r_ind.c:231:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] emoa/src/sympart.c:59:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REALSXP [valueFlowBailoutIncompleteVar] emoa/src/sympart.c:37:16: style: Local variable 'c2' shadows outer variable [shadowVariable] emoa/src/sympart.c:24:21: note: Shadowed declaration emoa/src/sympart.c:37:16: note: Shadow variable emoa/src/sympart.c:56:3: style: Variable 'x' can be declared as pointer to const [constVariablePointer] emoa/src/cec2009.c:37:25: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] emoa/src/cec2009.c:58:25: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] emoa/src/cec2009.c:85:25: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] emoa/src/cec2009.c:110:25: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] emoa/src/cec2009.c:131:25: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] emoa/src/cec2009.c:155:25: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] emoa/src/cec2009.c:186:25: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] emoa/src/cec2009.c:207:25: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] emoa/src/cec2009.c:233:25: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] emoa/src/cec2009.c:261:26: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] emoa/src/avl.c:194:39: style:inconclusive: Function 'avl_init_tree' argument 1 names different: declaration 'avltree' definition 'rc'. [funcArgNamesDifferent] emoa/src/avl.h:79:46: note: Function 'avl_init_tree' argument 1 names different: declaration 'avltree' definition 'rc'. emoa/src/avl.c:194:39: note: Function 'avl_init_tree' argument 1 names different: declaration 'avltree' definition 'rc'. emoa/src/avl.c:250:39: style:inconclusive: Function 'avl_init_node' argument 1 names different: declaration 'avlnode' definition 'newnode'. [funcArgNamesDifferent] emoa/src/avl.h:105:46: note: Function 'avl_init_node' argument 1 names different: declaration 'avlnode' definition 'newnode'. emoa/src/avl.c:250:39: note: Function 'avl_init_node' argument 1 names different: declaration 'avlnode' definition 'newnode'. emoa/src/avl.c:258:61: style:inconclusive: Function 'avl_insert_top' argument 2 names different: declaration 'avlnode' definition 'newnode'. [funcArgNamesDifferent] emoa/src/avl.h:122:61: note: Function 'avl_insert_top' argument 2 names different: declaration 'avlnode' definition 'newnode'. emoa/src/avl.c:258:61: note: Function 'avl_insert_top' argument 2 names different: declaration 'avlnode' definition 'newnode'. emoa/src/avl.c:265:64: style:inconclusive: Function 'avl_insert_before' argument 2 names different: declaration 'oldnode' definition 'node'. [funcArgNamesDifferent] emoa/src/avl.h:127:64: note: Function 'avl_insert_before' argument 2 names different: declaration 'oldnode' definition 'node'. emoa/src/avl.c:265:64: note: Function 'avl_insert_before' argument 2 names different: declaration 'oldnode' definition 'node'. emoa/src/avl.c:291:63: style:inconclusive: Function 'avl_insert_after' argument 2 names different: declaration 'oldnode' definition 'node'. [funcArgNamesDifferent] emoa/src/avl.h:133:63: note: Function 'avl_insert_after' argument 2 names different: declaration 'oldnode' definition 'node'. emoa/src/avl.c:291:63: note: Function 'avl_insert_after' argument 2 names different: declaration 'oldnode' definition 'node'. emoa/src/avl.c:478:10: style: Variable 'parent' is assigned a value that is never used. [unreadVariable] emoa/src/r_ind.c:203:3: style: Variable 'ideal' can be declared as pointer to const [constVariablePointer] emoa/src/r_ind.c:237:3: style: Variable 'ideal' can be declared as pointer to const [constVariablePointer] emoa/src/r_ind.c:238:3: style: Variable 'nadir' can be declared as pointer to const [constVariablePointer] diff: DONE