2025-12-17 08:09 ftp://ftp.de.debian.org/debian/pool/main/r/rlog/rlog_1.4.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 -j90 platform: Linux-6.8.0-88-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.69 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.18.0 head-info: c9c660e (2025-12-16 13:10:32 +0100) count: 48 46 elapsed-time: 0.0 0.1 head-timing-info: old-timing-info: head results: rlog-1.4/rlog/SyslogNode.cpp:92:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_INFO [valueFlowBailoutIncompleteVar] rlog-1.4/rlog/SyslogNode.h:31:2: style: Class 'SyslogNode' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] rlog-1.4/rlog/RLogPublisher.h:36:2: style: Class 'RLogPublisher' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] rlog-1.4/rlog/rloglocation.cpp:93:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gMapLock [valueFlowBailoutIncompleteVar] rlog-1.4/rlog/rloglocation.cpp:118:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gMapLock [valueFlowBailoutIncompleteVar] rlog-1.4/rlog/SyslogNode.cpp:58:36: style:inconclusive: Function 'SyslogNode' argument 1 names different: declaration 'ident' definition '_ident'. [funcArgNamesDifferent] rlog-1.4/rlog/SyslogNode.h:31:26: note: Function 'SyslogNode' argument 1 names different: declaration 'ident' definition '_ident'. rlog-1.4/rlog/SyslogNode.cpp:58:36: note: Function 'SyslogNode' argument 1 names different: declaration 'ident' definition '_ident'. rlog-1.4/rlog/SyslogNode.cpp:67:36: style:inconclusive: Function 'SyslogNode' argument 1 names different: declaration 'ident' definition '_ident'. [funcArgNamesDifferent] rlog-1.4/rlog/SyslogNode.h:33:26: note: Function 'SyslogNode' argument 1 names different: declaration 'ident' definition '_ident'. rlog-1.4/rlog/SyslogNode.cpp:67:36: note: Function 'SyslogNode' argument 1 names different: declaration 'ident' definition '_ident'. rlog-1.4/rlog/SyslogNode.cpp:67:48: style:inconclusive: Function 'SyslogNode' argument 2 names different: declaration 'option' definition '_option'. [funcArgNamesDifferent] rlog-1.4/rlog/SyslogNode.h:33:37: note: Function 'SyslogNode' argument 2 names different: declaration 'option' definition '_option'. rlog-1.4/rlog/SyslogNode.cpp:67:48: note: Function 'SyslogNode' argument 2 names different: declaration 'option' definition '_option'. rlog-1.4/rlog/SyslogNode.cpp:67:61: style:inconclusive: Function 'SyslogNode' argument 3 names different: declaration 'facility' definition '_facility'. [funcArgNamesDifferent] rlog-1.4/rlog/SyslogNode.h:33:49: note: Function 'SyslogNode' argument 3 names different: declaration 'facility' definition '_facility'. rlog-1.4/rlog/SyslogNode.cpp:67:61: note: Function 'SyslogNode' argument 3 names different: declaration 'facility' definition '_facility'. rlog-1.4/rlog/RLogChannel.h:36:5: style: The class 'RLogChannel' does not declare a constructor although it has private member variables which likely require initialization. [noConstructor] rlog-1.4/rlog/rlog.h:172:14: style:inconclusive: Technically the member function 'rlog::PublishLoc::isEnabled' can be const. [functionConst] rlog-1.4/rlog/Lock.h:48:2: style: Class 'Lock' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] rlog-1.4/rlog/rloglocation.h:35:2: style: Class 'FileNode' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] rlog-1.4/rlog/rloginit.cpp:33:29: warning: Function 'init' argument order different: declaration 'argv, argc' definition 'argc, argv' [funcArgOrderDifferent] rlog-1.4/rlog/rloginit.h:41:26: note: Function 'init' argument order different: declaration 'argv, argc' definition 'argc, argv' rlog-1.4/rlog/rloginit.cpp:33:29: note: Function 'init' argument order different: declaration 'argv, argc' definition 'argc, argv' rlog-1.4/rlog/Error.cpp:160:16: warning: 'operator=' should check for assignment to self to avoid problems with dynamic memory. [operatorEqToSelf] rlog-1.4/rlog/rloglocation.cpp:73:32: style:inconclusive: Function 'FileNode' argument 1 names different: declaration 'componentName' definition '_cn'. [funcArgNamesDifferent] rlog-1.4/rlog/rloglocation.h:34:23: note: Function 'FileNode' argument 1 names different: declaration 'componentName' definition '_cn'. rlog-1.4/rlog/rloglocation.cpp:73:32: note: Function 'FileNode' argument 1 names different: declaration 'componentName' definition '_cn'. rlog-1.4/rlog/rloglocation.cpp:73:49: style:inconclusive: Function 'FileNode' argument 2 names different: declaration 'fileName' definition '_fileName'. [funcArgNamesDifferent] rlog-1.4/rlog/rloglocation.h:34:50: note: Function 'FileNode' argument 2 names different: declaration 'fileName' definition '_fileName'. rlog-1.4/rlog/rloglocation.cpp:73:49: note: Function 'FileNode' argument 2 names different: declaration 'fileName' definition '_fileName'. rlog-1.4/rlog/rloglocation.cpp:80:32: style:inconclusive: Function 'FileNode' argument 1 names different: declaration 'fileName' definition '_fileName'. [funcArgNamesDifferent] rlog-1.4/rlog/rloglocation.h:35:23: note: Function 'FileNode' argument 1 names different: declaration 'fileName' definition '_fileName'. rlog-1.4/rlog/rloglocation.cpp:80:32: note: Function 'FileNode' argument 1 names different: declaration 'fileName' definition '_fileName'. rlog-1.4/rlog/Error.cpp:147:5: warning: Value of pointer 'data', which points to allocated memory, is copied in copy constructor instead of allocating new memory. [copyCtorPointerCopying] rlog-1.4/rlog/rlog.cpp:103:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable loc [valueFlowBailoutIncompleteVar] rlog-1.4/rlog/rlog.cpp:117:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pub [valueFlowBailoutIncompleteVar] rlog-1.4/rlog/rlog.cpp:136:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable channel [valueFlowBailoutIncompleteVar] rlog-1.4/rlog/Error.cpp:175:32: style:inconclusive: Function 'log' argument 1 names different: declaration 'RLogChannel' definition 'channel'. [funcArgNamesDifferent] rlog-1.4/rlog/Error.h:45:12: note: Function 'log' argument 1 names different: declaration 'RLogChannel' definition 'channel'. rlog-1.4/rlog/Error.cpp:175:32: note: Function 'log' argument 1 names different: declaration 'RLogChannel' definition 'channel'. rlog-1.4/rlog/test.cpp:50:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] rlog-1.4/rlog/rlog.cpp:53:9: warning: Struct 'PublishLoc' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] rlog-1.4/rlog/rlog.cpp:53:9: warning: Struct 'PublishLoc' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] rlog-1.4/rlog/StdioNode.h:41:2: style: Class 'StdioNode' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] rlog-1.4/rlog/rlog.cpp:66:19: warning:inconclusive: Found suspicious operator '*', result is not used. [constStatement] rlog-1.4/rlog/rlog.cpp:121:16: warning:inconclusive: Found suspicious operator '*', result is not used. [constStatement] rlog-1.4/rlog/StdioNode.cpp:166:20: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] rlog-1.4/rlog/StdioNode.cpp:102:26: style:inconclusive: Function 'StdioNode' argument 1 names different: declaration 'fdOut' definition '_fdOut'. [funcArgNamesDifferent] rlog-1.4/rlog/StdioNode.h:41:17: note: Function 'StdioNode' argument 1 names different: declaration 'fdOut' definition '_fdOut'. rlog-1.4/rlog/StdioNode.cpp:102:26: note: Function 'StdioNode' argument 1 names different: declaration 'fdOut' definition '_fdOut'. rlog-1.4/rlog/StdioNode.cpp:119:26: style:inconclusive: Function 'StdioNode' argument 1 names different: declaration 'fdOut' definition '_fdOut'. [funcArgNamesDifferent] rlog-1.4/rlog/StdioNode.h:43:17: note: Function 'StdioNode' argument 1 names different: declaration 'fdOut' definition '_fdOut'. rlog-1.4/rlog/StdioNode.cpp:119:26: note: Function 'StdioNode' argument 1 names different: declaration 'fdOut' definition '_fdOut'. rlog-1.4/rlog/StdioNode.cpp:119:39: style:inconclusive: Function 'StdioNode' argument 2 names different: declaration 'colorize_if_tty' definition 'colorizeIfTTY'. [funcArgNamesDifferent] rlog-1.4/rlog/StdioNode.h:43:29: note: Function 'StdioNode' argument 2 names different: declaration 'colorize_if_tty' definition 'colorizeIfTTY'. rlog-1.4/rlog/StdioNode.cpp:119:39: note: Function 'StdioNode' argument 2 names different: declaration 'colorize_if_tty' definition 'colorizeIfTTY'. rlog-1.4/rlog/StdioNode.cpp:179:9: style: Variable 'channel' is assigned a value that is never used. [unreadVariable] rlog-1.4/rlog/RLogNode.cpp:127:35: style:inconclusive: Function 'addPublisher' argument 1 names different: declaration 'RLogNode' definition 'publisher'. [funcArgNamesDifferent] rlog-1.4/rlog/RLogNode.h:74:29: note: Function 'addPublisher' argument 1 names different: declaration 'RLogNode' definition 'publisher'. rlog-1.4/rlog/RLogNode.cpp:127:35: note: Function 'addPublisher' argument 1 names different: declaration 'RLogNode' definition 'publisher'. rlog-1.4/rlog/RLogNode.cpp:148:36: style:inconclusive: Function 'dropPublisher' argument 1 names different: declaration 'RLogNode' definition 'publisher'. [funcArgNamesDifferent] rlog-1.4/rlog/RLogNode.h:75:30: note: Function 'dropPublisher' argument 1 names different: declaration 'RLogNode' definition 'publisher'. rlog-1.4/rlog/RLogNode.cpp:148:36: note: Function 'dropPublisher' argument 1 names different: declaration 'RLogNode' definition 'publisher'. rlog-1.4/rlog/RLogNode.cpp:148:52: style:inconclusive: Function 'dropPublisher' argument 2 names different: declaration 'callbacks' definition 'callback'. [funcArgNamesDifferent] rlog-1.4/rlog/RLogNode.h:75:47: note: Function 'dropPublisher' argument 2 names different: declaration 'callbacks' definition 'callback'. rlog-1.4/rlog/RLogNode.cpp:148:52: note: Function 'dropPublisher' argument 2 names different: declaration 'callbacks' definition 'callback'. rlog-1.4/rlog/RLogNode.cpp:169:36: style:inconclusive: Function 'addSubscriber' argument 1 names different: declaration 'RLogNode' definition 'subscriber'. [funcArgNamesDifferent] rlog-1.4/rlog/RLogNode.h:80:30: note: Function 'addSubscriber' argument 1 names different: declaration 'RLogNode' definition 'subscriber'. rlog-1.4/rlog/RLogNode.cpp:169:36: note: Function 'addSubscriber' argument 1 names different: declaration 'RLogNode' definition 'subscriber'. rlog-1.4/rlog/RLogNode.cpp:185:37: style:inconclusive: Function 'dropSubscriber' argument 1 names different: declaration 'RLogNode' definition 'subscriber'. [funcArgNamesDifferent] rlog-1.4/rlog/RLogNode.h:81:31: note: Function 'dropSubscriber' argument 1 names different: declaration 'RLogNode' definition 'subscriber'. rlog-1.4/rlog/RLogNode.cpp:185:37: note: Function 'dropSubscriber' argument 1 names different: declaration 'RLogNode' definition 'subscriber'. rlog-1.4/rlog/RLogNode.cpp:203:35: style:inconclusive: Function 'isInterested' argument 1 names different: declaration 'RLogNode' definition 'node'. [funcArgNamesDifferent] rlog-1.4/rlog/RLogNode.h:83:29: note: Function 'isInterested' argument 1 names different: declaration 'RLogNode' definition 'node'. rlog-1.4/rlog/RLogNode.cpp:203:35: note: Function 'isInterested' argument 1 names different: declaration 'RLogNode' definition 'node'. rlog-1.4/rlog/RLogNode.cpp:203:46: style:inconclusive: Function 'isInterested' argument 2 names different: declaration 'isInterested' definition 'interest'. [funcArgNamesDifferent] rlog-1.4/rlog/RLogNode.h:83:50: note: Function 'isInterested' argument 2 names different: declaration 'isInterested' definition 'interest'. rlog-1.4/rlog/RLogNode.cpp:203:46: note: Function 'isInterested' argument 2 names different: declaration 'isInterested' definition 'interest'. rlog-1.4/rlog/testlog.cpp:129:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] rlog-1.4/rlog/RLogPublisher.cpp:84:16: warning:inconclusive: Member variable 'RLogPublisher::src' is not initialized in the constructor. [uninitMemberVar] rlog-1.4/rlog/RLogPublisher.cpp:88:42: style:inconclusive: Function 'RLogPublisher' argument 1 names different: declaration 'src' definition 'loc'. [funcArgNamesDifferent] rlog-1.4/rlog/RLogPublisher.h:36:28: note: Function 'RLogPublisher' argument 1 names different: declaration 'src' definition 'loc'. rlog-1.4/rlog/RLogPublisher.cpp:88:42: note: Function 'RLogPublisher' argument 1 names different: declaration 'src' definition 'loc'. rlog-1.4/rlog/RLogPublisher.cpp:109:32: style:inconclusive: Function 'setEnabled' argument 1 names different: declaration 'newState' definition 'active'. [funcArgNamesDifferent] rlog-1.4/rlog/RLogPublisher.h:49:31: note: Function 'setEnabled' argument 1 names different: declaration 'newState' definition 'active'. rlog-1.4/rlog/RLogPublisher.cpp:109:32: note: Function 'setEnabled' argument 1 names different: declaration 'newState' definition 'active'. rlog-1.4/rlog/RLogPublisher.cpp:157:11: error: va_list 'args' used before va_start() was called. [va_list_usedBeforeStarted] rlog-1.4/rlog/RLogPublisher.cpp:160:47: error: va_list 'args' used before va_start() was called. [va_list_usedBeforeStarted] rlog-1.4/rlog/RLogPublisher.cpp:161:2: error: va_list 'args' used before va_start() was called. [va_list_usedBeforeStarted] diff: head rlog-1.4/rlog/rlog.cpp:53:9: warning: Struct 'PublishLoc' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] head rlog-1.4/rlog/rlog.cpp:53:9: warning: Struct 'PublishLoc' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] DONE