2024-04-23 00:22 ftp://ftp.de.debian.org/debian/pool/main/v/vectoroids/vectoroids_1.1.0.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=sdl --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 -j3 platform: Linux-4.18.0-513.9.1.el8_9.cloud.0.1.x86_64-x86_64-with-glibc2.28 python: 3.10.2 client-version: 1.3.56 compiler: g++ (GCC) 13.1.1 20230614 (Red Hat 13.1.1-4) cppcheck: head 2.14.0 head-info: bd7136d (2024-04-22 21:34:48 +0200) count: 22 22 elapsed-time: 1.1 1.1 head-timing-info: old-timing-info: head results: vectoroids-1.1.0/vectoroids.c:620:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] vectoroids-1.1.0/vectoroids.c:776:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_QUIT [valueFlowBailoutIncompleteVar] vectoroids-1.1.0/vectoroids.c:1063:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_QUIT [valueFlowBailoutIncompleteVar] vectoroids-1.1.0/vectoroids.c:1931:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] vectoroids-1.1.0/vectoroids.c:2188:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] vectoroids-1.1.0/vectoroids.c:2601:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_BYTEORDER [valueFlowBailoutIncompleteVar] vectoroids-1.1.0/vectoroids.c:0:0: debug: ValueFlow maximum iterations exceeded [valueFlowMaxIterations] vectoroids-1.1.0/vectoroids.c:2484:17: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] vectoroids-1.1.0/vectoroids.c:2486:17: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] vectoroids-1.1.0/vectoroids.c:2218:18: style:inconclusive: Function 'fast_cos' argument 1 names different: declaration 'v' definition 'angle'. [funcArgNamesDifferent] vectoroids-1.1.0/vectoroids.c:540:18: note: Function 'fast_cos' argument 1 names different: declaration 'v' definition 'angle'. vectoroids-1.1.0/vectoroids.c:2218:18: note: Function 'fast_cos' argument 1 names different: declaration 'v' definition 'angle'. vectoroids-1.1.0/vectoroids.c:2235:18: style:inconclusive: Function 'fast_sin' argument 1 names different: declaration 'v' definition 'angle'. [funcArgNamesDifferent] vectoroids-1.1.0/vectoroids.c:541:18: note: Function 'fast_sin' argument 1 names different: declaration 'v' definition 'angle'. vectoroids-1.1.0/vectoroids.c:2235:18: note: Function 'fast_sin' argument 1 names different: declaration 'v' definition 'angle'. vectoroids-1.1.0/vectoroids.c:2629:25: style:inconclusive: Function 'draw_segment' argument 9 names different: declaration 'ang' definition 'a'. [funcArgNamesDifferent] vectoroids-1.1.0/vectoroids.c:556:25: note: Function 'draw_segment' argument 9 names different: declaration 'ang' definition 'a'. vectoroids-1.1.0/vectoroids.c:2629:25: note: Function 'draw_segment' argument 9 names different: declaration 'ang' definition 'a'. vectoroids-1.1.0/vectoroids.c:703:19: style: Local variable 'angle' shadows outer variable [shadowVariable] vectoroids-1.1.0/vectoroids.c:180:19: note: Shadowed declaration vectoroids-1.1.0/vectoroids.c:703:19: note: Shadow variable vectoroids-1.1.0/vectoroids.c:703:41: style: Local variable 'x' shadows outer variable [shadowVariable] vectoroids-1.1.0/vectoroids.c:180:5: note: Shadowed declaration vectoroids-1.1.0/vectoroids.c:703:41: note: Shadow variable vectoroids-1.1.0/vectoroids.c:703:44: style: Local variable 'y' shadows outer variable [shadowVariable] vectoroids-1.1.0/vectoroids.c:180:8: note: Shadowed declaration vectoroids-1.1.0/vectoroids.c:703:44: note: Shadow variable vectoroids-1.1.0/vectoroids.c:703:47: style: Local variable 'xm' shadows outer variable [shadowVariable] vectoroids-1.1.0/vectoroids.c:180:11: note: Shadowed declaration vectoroids-1.1.0/vectoroids.c:703:47: note: Shadow variable vectoroids-1.1.0/vectoroids.c:703:51: style: Local variable 'ym' shadows outer variable [shadowVariable] vectoroids-1.1.0/vectoroids.c:180:15: note: Shadowed declaration vectoroids-1.1.0/vectoroids.c:703:51: note: Shadow variable vectoroids-1.1.0/vectoroids.c:707:10: style: Variable 'titlestr' can be declared as pointer to const [constVariablePointer] vectoroids-1.1.0/vectoroids.c:2922:23: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] vectoroids-1.1.0/vectoroids.c:2987:34: style: Parameter 'prg' can be declared as pointer to const [constParameterPointer] vectoroids-1.1.0/vectoroids.c:2374:5: style: Variable 'm' is assigned a value that is never used. [unreadVariable] vectoroids-1.1.0/vectoroids.c:2407:21: style: Variable 'code2' is assigned a value that is never used. [unreadVariable] diff: DONE