2026-01-10 02:25 ftp://ftp.de.debian.org/debian/pool/main/libp/libptytty/libptytty_2.0.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --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 -j8 platform: Linux-6.17.12+deb14-amd64-x86_64-with-glibc2.42 python: 3.13.11 client-version: 1.3.69 compiler: g++ (Debian 15.2.0-12) 15.2.0 cppcheck: head 2.19.0 head-info: 574fffae (2026-01-10 01:51:39 +0100) count: 25 25 elapsed-time: 0.0 0.1 head-timing-info: old-timing-info: head results: libptytty-2.0/src/libptytty.h:18:3: style: Class 'ptytty_error' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libptytty-2.0/src/ptytty.h:36:4: style: The destructor '~ptytty_unix' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] libptytty-2.0/src/libptytty.h:40:12: note: Virtual destructor in base class libptytty-2.0/src/ptytty.h:36:4: note: Destructor in derived class libptytty-2.0/src/ptytty.h:38:8: style: The function 'get' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] libptytty-2.0/src/libptytty.h:44:16: note: Virtual function in base class libptytty-2.0/src/ptytty.h:38:8: note: Function in derived class libptytty-2.0/src/ptytty.h:39:8: style: The function 'login' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] libptytty-2.0/src/libptytty.h:45:16: note: Virtual function in base class libptytty-2.0/src/ptytty.h:39:8: note: Function in derived class libptytty-2.0/src/fdpass.C:46:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cmsghdr [valueFlowBailoutIncompleteVar] libptytty-2.0/src/fdpass.C:83:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cmsghdr [valueFlowBailoutIncompleteVar] libptytty-2.0/src/c-api.C:39:13: style: C-style pointer casting [cstyleCast] libptytty-2.0/src/c-api.C:45:13: style: C-style pointer casting [cstyleCast] libptytty-2.0/src/c-api.C:51:13: style: C-style pointer casting [cstyleCast] libptytty-2.0/src/c-api.C:57:13: style: C-style pointer casting [cstyleCast] libptytty-2.0/src/c-api.C:63:13: style: C-style pointer casting [cstyleCast] libptytty-2.0/src/c-api.C:69:13: style: C-style pointer casting [cstyleCast] libptytty-2.0/src/c-api.C:75:13: style: C-style pointer casting [cstyleCast] libptytty-2.0/src/ptytty.C:161:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] libptytty-2.0/src/ptytty.C:190:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] libptytty-2.0/src/ptytty.C:207:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] libptytty-2.0/src/ptytty.C:283:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] libptytty-2.0/src/fdpass.C:71:4: style: C-style pointer casting [cstyleCast] libptytty-2.0/src/fdpass.C:113:15: style: C-style pointer casting [cstyleCast] libptytty-2.0/src/proxy.C:346:3: error: #error no way to drop privileges, configure failed? [preprocessorErrorDirective] libptytty-2.0/src/ptytty.C:207:14: portability: Non reentrant function 'ttyname' called. For threadsafe applications it is recommended to use the reentrant replacement function 'ttyname_r'. [prohibitedttynameCalled] libptytty-2.0/src/ptytty.C:232:9: style:inconclusive: Technically the member function 'ptytty::make_controlling_tty' can be const. [functionConst] libptytty-2.0/src/libptytty.h:48:8: note: Technically the member function 'ptytty::make_controlling_tty' can be const. libptytty-2.0/src/ptytty.C:232:9: note: Technically the member function 'ptytty::make_controlling_tty' can be const. libptytty-2.0/src/ptytty.C:238:9: style: The member function 'ptytty::set_utf8_mode' can be static. [functionStatic] libptytty-2.0/src/libptytty.h:49:8: note: The member function 'ptytty::set_utf8_mode' can be static. libptytty-2.0/src/ptytty.C:238:9: note: The member function 'ptytty::set_utf8_mode' can be static. libptytty-2.0/src/ptytty.C:149:9: style: The scope of the variable 'pfd' can be reduced. [variableScope] libptytty-2.0/src/ptytty.C:188:16: style: Parameter 'ttydev' can be declared as pointer to const [constParameterPointer] diff: DONE