2025-05-08 21:39 ftp://ftp.de.debian.org/debian/pool/main/w/welcome2l/welcome2l_3.05.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 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: 66c9938 (2025-05-08 13:55:11 +0200) count: 16 16 elapsed-time: 0.4 0.4 head-timing-info: old-timing-info: head results: welcome2l-3.05/main.c:358:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PROG_NAME [valueFlowBailoutIncompleteVar] welcome2l-3.05/main.c:365:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PROG_NAME [valueFlowBailoutIncompleteVar] welcome2l-3.05/main.c:441:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] welcome2l-3.05/main.c:415:7: warning:inconclusive: The buffer 'WMESG' may not be null-terminated after the call to strncpy(). [terminateStrncpy] welcome2l-3.05/main.c:463:7: warning:inconclusive: The buffer 'CPUID' may not be null-terminated after the call to strncpy(). [terminateStrncpy] welcome2l-3.05/main.c:190:9: portability: Non reentrant function 'ttyname' called. For threadsafe applications it is recommended to use the reentrant replacement function 'ttyname_r'. [prohibitedttynameCalled] welcome2l-3.05/main.c:492:13: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] welcome2l-3.05/main.c:93:7: style: Variable 'tab_val' can be declared as const array [constVariable] welcome2l-3.05/main.c:115:10: style: Variable 'units' can be declared as pointer to const [constVariablePointer] welcome2l-3.05/main.c:149:45: style: Parameter 'ansi_screen' can be declared as pointer to const [constParameterPointer] welcome2l-3.05/main.c:355:31: style: Parameter 'param' can be declared as pointer to const [constParameterPointer] welcome2l-3.05/main.c:362:37: style: Parameter 'param' can be declared as pointer to const [constParameterPointer] welcome2l-3.05/main.c:369:32: style: Parameter 'this_option' can be declared as pointer to const [constParameterPointer] welcome2l-3.05/main.c:370:11: style: Parameter 'this_option_arg' can be declared as pointer to const [constParameterPointer] welcome2l-3.05/main.c:370:34: style: Parameter 'this_message' can be declared as pointer to const [constParameterPointer] welcome2l-3.05/main.c:400:14: style: Variable 'timeptr' can be declared as pointer to const [constVariablePointer] diff: DONE