2025-05-05 02:10 ftp://ftp.de.debian.org/debian/pool/main/i/indi-rtklib/indi-rtklib_1.0+20221222172722.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-59-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.17.0 head-info: 88ef81e (2025-05-02 08:42:38 +0200) count: 16 16 elapsed-time: 0.1 0.2 head-timing-info: old-timing-info: head results: indi-rtklib-1.0+20221222172722/rtklib_driver.cpp:65:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPS_IDLE [valueFlowBailoutIncompleteVar] indi-rtklib-1.0+20221222172722/rtklib_driver.cpp:106:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPS_BUSY [valueFlowBailoutIncompleteVar] indi-rtklib-1.0+20221222172722/rtklib_driver.cpp:128:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] indi-rtklib-1.0+20221222172722/rtklib_driver.cpp:175:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TTY_OVERFLOW [valueFlowBailoutIncompleteVar] indi-rtklib-1.0+20221222172722/rtklib_driver.cpp:192:25: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] indi-rtklib-1.0+20221222172722/rtklib_driver.cpp:202:25: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] indi-rtklib-1.0+20221222172722/rtklib_driver.cpp:259:23: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] indi-rtklib-1.0+20221222172722/rtklib_driver.cpp:265:25: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] indi-rtklib-1.0+20221222172722/rtklib_driver.cpp:192:35: error: Invalid usleep() argument nr 1. The value is 10000000 but the valid values are '0:999999'. [invalidFunctionArg] indi-rtklib-1.0+20221222172722/rtklib_driver.cpp:202:34: error: Invalid usleep() argument nr 1. The value is 5000000 but the valid values are '0:999999'. [invalidFunctionArg] indi-rtklib-1.0+20221222172722/rtklib_driver.cpp:48:9: warning: Member variable 'RTKLIB::lock' is not initialized in the constructor. [uninitMemberVar] indi-rtklib-1.0+20221222172722/rtklib_driver.cpp:48:9: warning: Member variable 'RTKLIB::rtkThread' is not initialized in the constructor. [uninitMemberVar] indi-rtklib-1.0+20221222172722/rtklib_driver.cpp:253:28: style: Variable 'utc' can be declared as pointer to const [constVariablePointer] indi-rtklib-1.0+20221222172722/rtklib_driver.cpp:253:34: style: Variable 'local' can be declared as pointer to const [constVariablePointer] indi-rtklib-1.0+20221222172722/rtklib_driver.cpp:256:32: style: Variable 'timesp.tv_nsec' is assigned a value that is never used. [unreadVariable] indi-rtklib-1.0+20221222172722/rtkrcv_parser.c:34:25: style: Parameter 'solution' can be declared as pointer to const [constParameterPointer] diff: DONE