2026-05-03 02:03 ftp://ftp.de.debian.org/debian/pool/main/liba/libahp-gt/libahp-gt_1.7.3.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-1047-aws-aarch64-with-glibc2.35 python: 3.10.12 client-version: 1.4.0 compiler: g++ (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 84 84 elapsed-time: 0.7 0.6 head-timing-info: old-timing-info: head results: libahp-gt-1.7.3/rs232.c:172:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable B50 [valueFlowBailoutIncompleteVar] libahp-gt-1.7.3/rs232.c:342:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCIFLUSH [valueFlowBailoutIncompleteVar] libahp-gt-1.7.3/rs232.c:348:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCOFLUSH [valueFlowBailoutIncompleteVar] libahp-gt-1.7.3/rs232.c:354:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCIOFLUSH [valueFlowBailoutIncompleteVar] libahp-gt-1.7.3/rs232.c:495:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] libahp-gt-1.7.3/rs232.c:536:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENODEV [valueFlowBailoutIncompleteVar] libahp-gt-1.7.3/rs232.c:563:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENODEV [valueFlowBailoutIncompleteVar] libahp-gt-1.7.3/rs232.c:594:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libahp-gt-1.7.3/rs232.c:604:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libahp-gt-1.7.3/rs232.c:616:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libahp-gt-1.7.3/rs232.c:629:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTHREAD_MUTEX_ERRORCHECK [valueFlowBailoutIncompleteVar] libahp-gt-1.7.3/ahp_gt.c:267:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable isForkMount [valueFlowBailoutIncompleteVar] libahp-gt-1.7.3/ahp_gt.c:348:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable isForkMount [valueFlowBailoutIncompleteVar] libahp-gt-1.7.3/ahp_gt.c:360:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable isForkMount [valueFlowBailoutIncompleteVar] libahp-gt-1.7.3/ahp_gt.c:770:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTHREAD_MUTEX_ERRORCHECK [valueFlowBailoutIncompleteVar] libahp-gt-1.7.3/ahp_gt.c:812:73: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HalfStep [valueFlowBailoutIncompleteVar] libahp-gt-1.7.3/ahp_gt.c:869:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FlashEnable [valueFlowBailoutIncompleteVar] libahp-gt-1.7.3/ahp_gt.c:891:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FlashEnable [valueFlowBailoutIncompleteVar] libahp-gt-1.7.3/ahp_gt.c:913:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FlashEnable [valueFlowBailoutIncompleteVar] libahp-gt-1.7.3/ahp_gt.c:948:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] libahp-gt-1.7.3/ahp_gt.c:1005:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable torqueControl [valueFlowBailoutIncompleteVar] libahp-gt-1.7.3/ahp_gt.c:1089:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable InquireGridPerRevolution [valueFlowBailoutIncompleteVar] libahp-gt-1.7.3/ahp_gt.c:1244:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] libahp-gt-1.7.3/ahp_gt.c:1312:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable InquireMotorBoardVersion [valueFlowBailoutIncompleteVar] libahp-gt-1.7.3/ahp_gt.c:1332:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GetAxis [valueFlowBailoutIncompleteVar] libahp-gt-1.7.3/ahp_gt.c:1521:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SetAxis [valueFlowBailoutIncompleteVar] libahp-gt-1.7.3/ahp_gt.c:1715:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SetAddress [valueFlowBailoutIncompleteVar] libahp-gt-1.7.3/ahp_gt.c:1734:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SetAddress [valueFlowBailoutIncompleteVar] libahp-gt-1.7.3/ahp_gt.c:1763:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GetAxisStatus [valueFlowBailoutIncompleteVar] libahp-gt-1.7.3/ahp_gt.c:1788:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SetAxisPositionCmd [valueFlowBailoutIncompleteVar] libahp-gt-1.7.3/ahp_gt.c:1795:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GetAxisPosition [valueFlowBailoutIncompleteVar] libahp-gt-1.7.3/ahp_gt.c:1855:71: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Running [valueFlowBailoutIncompleteVar] libahp-gt-1.7.3/ahp_gt.c:1910:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_GOTO_HISPEED [valueFlowBailoutIncompleteVar] libahp-gt-1.7.3/ahp_gt.c:1940:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_GOTO_HISPEED [valueFlowBailoutIncompleteVar] libahp-gt-1.7.3/ahp_gt.c:1963:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_SLEW_HISPEED [valueFlowBailoutIncompleteVar] libahp-gt-1.7.3/ahp_gt.c:1981:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable InstantAxisStop [valueFlowBailoutIncompleteVar] libahp-gt-1.7.3/ahp_gt.c:2020:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SetStepPeriod [valueFlowBailoutIncompleteVar] libahp-gt-1.7.3/ahp_gt.c:2037:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SetStepPeriod [valueFlowBailoutIncompleteVar] libahp-gt-1.7.3/ahp_gt.c:1443:17: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] libahp-gt-1.7.3/rs232.c:545:13: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] libahp-gt-1.7.3/rs232.c:547:13: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] libahp-gt-1.7.3/rs232.c:570:13: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] libahp-gt-1.7.3/rs232.c:572:13: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] libahp-gt-1.7.3/ahp_gt.c:396:9: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] libahp-gt-1.7.3/ahp_gt.c:627:23: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] libahp-gt-1.7.3/ahp_gt.c:727:13: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] libahp-gt-1.7.3/ahp_gt.c:775:9: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] libahp-gt-1.7.3/ahp_gt.c:894:13: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] libahp-gt-1.7.3/ahp_gt.c:916:13: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] libahp-gt-1.7.3/ahp_gt.c:920:17: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] libahp-gt-1.7.3/ahp_gt.c:983:17: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] libahp-gt-1.7.3/ahp_gt.c:1984:13: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] libahp-gt-1.7.3/ahp_gt.c:2047:9: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] libahp-gt-1.7.3/ahp_gt.c:608:24: warning: If memory allocation fails, then there is a possible null pointer dereference: now [nullPointerOutOfMemory] libahp-gt-1.7.3/ahp_gt.c:607:29: note: Assuming allocation function fails libahp-gt-1.7.3/ahp_gt.c:607:29: note: Assignment 'now=malloc(sizeof(struct tm))', assigned value is 0 libahp-gt-1.7.3/ahp_gt.c:608:24: note: Null pointer dereference libahp-gt-1.7.3/ahp_gt.c:609:17: warning: If memory allocation fails, then there is a possible null pointer dereference: now [nullPointerOutOfMemory] libahp-gt-1.7.3/ahp_gt.c:607:29: note: Assuming allocation function fails libahp-gt-1.7.3/ahp_gt.c:607:29: note: Assignment 'now=malloc(sizeof(struct tm))', assigned value is 0 libahp-gt-1.7.3/ahp_gt.c:609:17: note: Null pointer dereference libahp-gt-1.7.3/ahp_gt.c:610:17: warning: If memory allocation fails, then there is a possible null pointer dereference: now [nullPointerOutOfMemory] libahp-gt-1.7.3/ahp_gt.c:607:29: note: Assuming allocation function fails libahp-gt-1.7.3/ahp_gt.c:607:29: note: Assignment 'now=malloc(sizeof(struct tm))', assigned value is 0 libahp-gt-1.7.3/ahp_gt.c:610:17: note: Null pointer dereference libahp-gt-1.7.3/ahp_gt.c:611:17: warning: If memory allocation fails, then there is a possible null pointer dereference: now [nullPointerOutOfMemory] libahp-gt-1.7.3/ahp_gt.c:607:29: note: Assuming allocation function fails libahp-gt-1.7.3/ahp_gt.c:607:29: note: Assignment 'now=malloc(sizeof(struct tm))', assigned value is 0 libahp-gt-1.7.3/ahp_gt.c:611:17: note: Null pointer dereference libahp-gt-1.7.3/ahp_gt.c:612:17: warning: If memory allocation fails, then there is a possible null pointer dereference: now [nullPointerOutOfMemory] libahp-gt-1.7.3/ahp_gt.c:607:29: note: Assuming allocation function fails libahp-gt-1.7.3/ahp_gt.c:607:29: note: Assignment 'now=malloc(sizeof(struct tm))', assigned value is 0 libahp-gt-1.7.3/ahp_gt.c:612:17: note: Null pointer dereference libahp-gt-1.7.3/ahp_gt.c:613:17: warning: If memory allocation fails, then there is a possible null pointer dereference: now [nullPointerOutOfMemory] libahp-gt-1.7.3/ahp_gt.c:607:29: note: Assuming allocation function fails libahp-gt-1.7.3/ahp_gt.c:607:29: note: Assignment 'now=malloc(sizeof(struct tm))', assigned value is 0 libahp-gt-1.7.3/ahp_gt.c:613:17: note: Null pointer dereference libahp-gt-1.7.3/ahp_gt.c:614:17: warning: If memory allocation fails, then there is a possible null pointer dereference: now [nullPointerOutOfMemory] libahp-gt-1.7.3/ahp_gt.c:607:29: note: Assuming allocation function fails libahp-gt-1.7.3/ahp_gt.c:607:29: note: Assignment 'now=malloc(sizeof(struct tm))', assigned value is 0 libahp-gt-1.7.3/ahp_gt.c:614:17: note: Null pointer dereference libahp-gt-1.7.3/ahp_gt.c:617:29: warning: If memory allocation fails, then there is a possible null pointer dereference: now [nullPointerOutOfMemory] libahp-gt-1.7.3/ahp_gt.c:607:29: note: Assuming allocation function fails libahp-gt-1.7.3/ahp_gt.c:607:29: note: Assignment 'now=malloc(sizeof(struct tm))', assigned value is 0 libahp-gt-1.7.3/ahp_gt.c:617:29: note: Null pointer dereference libahp-gt-1.7.3/ahp_gt.c:763:66: style:inconclusive: Function 'dispatch_command' argument 3 names different: declaration 'command_arg' definition 'arg'. [funcArgNamesDifferent] libahp-gt-1.7.3/ahp_gt.c:117:66: note: Function 'dispatch_command' argument 3 names different: declaration 'command_arg' definition 'arg'. libahp-gt-1.7.3/ahp_gt.c:763:66: note: Function 'dispatch_command' argument 3 names different: declaration 'command_arg' definition 'arg'. libahp-gt-1.7.3/ahp_gt.c:1763:9: style: Local variable 'response' shadows outer variable [shadowVariable] libahp-gt-1.7.3/ahp_gt.c:116:13: note: Shadowed declaration libahp-gt-1.7.3/ahp_gt.c:1763:9: note: Shadow variable libahp-gt-1.7.3/ahp_gt.c:1444:53: warning: Redundant code: Found unused member access. [constStatement] libahp-gt-1.7.3/ahp_gt.c:209:50: style: Parameter 'dec' can be declared as pointer to const [constParameterPointer] libahp-gt-1.7.3/ahp_gt.c:379:14: style: Variable 'info' can be declared as pointer to const [constVariablePointer] libahp-gt-1.7.3/ahp_gt.c:674:33: style: Parameter 's' can be declared as pointer to const [constParameterPointer] libahp-gt-1.7.3/ahp_gt.c:691:31: style: Parameter 's' can be declared as pointer to const [constParameterPointer] libahp-gt-1.7.3/ahp_gt.c:704:10: style: Variable 'hexa' can be declared as const array [constVariable] libahp-gt-1.7.3/ahp_gt.c:933:48: style: Parameter 'interrupt' can be declared as pointer to const [constParameterPointer] libahp-gt-1.7.3/ahp_gt.c:1010:9: style: Variable 'values' can be declared as const array [constVariable] libahp-gt-1.7.3/rs232.c:561:46: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] libahp-gt-1.7.3/rs232.c:536:11: style: Variable 'n' is assigned a value that is never used. [unreadVariable] libahp-gt-1.7.3/rs232.c:540:13: style: Variable 'err' is assigned a value that is never used. [unreadVariable] libahp-gt-1.7.3/rs232.c:563:11: style: Variable 'n' is assigned a value that is never used. [unreadVariable] libahp-gt-1.7.3/ahp_gt.c:127:23: style: Variable 'tz.tz_minuteswest' is assigned a value that is never used. [unreadVariable] libahp-gt-1.7.3/ahp_gt.c:128:19: style: Variable 'tz.tz_dsttime' is assigned a value that is never used. [unreadVariable] libahp-gt-1.7.3/ahp_gt.c:766:9: style: Unused variable: c [unusedVariable] libahp-gt-1.7.3/ahp_gt.c:875:24: style: Variable 'ntries' is assigned a value that is never used. [unreadVariable] libahp-gt-1.7.3/ahp_gt.c:898:24: style: Variable 'ntries' is assigned a value that is never used. [unreadVariable] libahp-gt-1.7.3/ahp_gt.c:922:28: style: Variable 'ntries' is assigned a value that is never used. [unreadVariable] libahp-gt-1.7.3/ahp_gt.c:977:19: style: Variable 'tv.tv_sec' is assigned a value that is never used. [unreadVariable] libahp-gt-1.7.3/ahp_gt.c:978:20: style: Variable 'tv.tv_usec' is assigned a value that is never used. [unreadVariable] libahp-gt-1.7.3/ahp_gt.c:1279:14: style: Variable 'addr' is assigned a value that is never used. [unreadVariable] diff: DONE