2024-04-20 21:27 ftp://ftp.de.debian.org/debian/pool/main/o/owx/owx_0~20110415.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 -D__GNUC__ --platform=unix64 -j1 platform: Linux-5.15.0-105-generic-x86_64-with-glibc2.35 python: 3.10.12 client-version: 1.3.56 compiler: g++ (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0 cppcheck: head 2.13.0 head-info: fb15ac6 (2024-04-20 19:16:41 +0200) count: 46 37 elapsed-time: 0.9 0.6 head-timing-info: old-timing-info: head results: owx-0~20110415/src/cli.cc:10:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable opterr [valueFlowBailoutIncompleteVar] owx-0~20110415/src/cmds.cc:111:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] owx-0~20110415/src/cmds.cc:162:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] owx-0~20110415/src/file.h:22:1: style: The class 'CFileRead' does not declare a constructor although it has private member variables which likely require initialization. [noConstructor] owx-0~20110415/src/file.h:28:3: style: The destructor '~CFileRead' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] owx-0~20110415/src/file.h:16:11: note: Virtual destructor in base class owx-0~20110415/src/file.h:28:3: note: Destructor in derived class owx-0~20110415/src/file.h:30:15: style: The function 'Open' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] owx-0~20110415/src/file.h:18:15: note: Virtual function in base class owx-0~20110415/src/file.h:30:15: note: Function in derived class owx-0~20110415/src/file.h:38:3: style: The destructor '~CFileWrite' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] owx-0~20110415/src/file.h:16:11: note: Virtual destructor in base class owx-0~20110415/src/file.h:38:3: note: Destructor in derived class owx-0~20110415/src/file.h:40:15: style: The function 'Open' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] owx-0~20110415/src/file.h:18:15: note: Virtual function in base class owx-0~20110415/src/file.h:40:15: note: Function in derived class owx-0~20110415/src/cmds.cc:110:3: portability: %X in format string (no. 1) requires 'unsigned int' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] owx-0~20110415/src/cmds.cc:110:3: portability: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] owx-0~20110415/src/cmds.cc:161:3: portability: %X in format string (no. 2) requires 'unsigned int' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] owx-0~20110415/src/cmds.cc:161:3: portability: %u in format string (no. 3) requires 'unsigned int' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] owx-0~20110415/src/cmds.cc:16:62: performance: Function parameter 'forbidden' should be passed by const reference. [passedByValue] owx-0~20110415/src/comm.cc:23:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] owx-0~20110415/src/comm.cc:69:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] owx-0~20110415/src/comm.cc:112:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] owx-0~20110415/src/comm.cc:60:17: style: C-style pointer casting [cstyleCast] owx-0~20110415/src/comm.cc:92:10: style: C-style pointer casting [cstyleCast] owx-0~20110415/src/csv.h:17:14: style:inconclusive: Technically the member function 'CCsv::Implode' can be const. [functionConst] owx-0~20110415/src/csv.cc:93:19: note: Technically the member function 'CCsv::Implode' can be const. owx-0~20110415/src/csv.h:17:14: note: Technically the member function 'CCsv::Implode' can be const. owx-0~20110415/src/util.h:9:41: performance: Function parameter 's' should be passed by const reference. [passedByValue] owx-0~20110415/src/export.cc:51:2: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] owx-0~20110415/src/export.cc:51:2: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] owx-0~20110415/src/export.cc:142:2: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] owx-0~20110415/src/export.cc:142:2: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] owx-0~20110415/src/export.cc:206:3: portability: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] owx-0~20110415/src/export.cc:205:8: style: Local variable 'buf' shadows outer argument [shadowArgument] owx-0~20110415/src/export.cc:168:36: note: Shadowed declaration owx-0~20110415/src/export.cc:205:8: note: Shadow variable owx-0~20110415/src/file.cc:23:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] owx-0~20110415/src/file.cc:37:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] owx-0~20110415/src/file.cc:67:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] owx-0~20110415/src/file.cc:83:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] owx-0~20110415/src/file.cc:92:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] owx-0~20110415/src/import.cc:152:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] owx-0~20110415/src/import.cc:13:63: performance: Function parameter 's' should be passed by const reference. [passedByValue] owx-0~20110415/src/import.cc:35:63: performance: Function parameter 's' should be passed by const reference. [passedByValue] owx-0~20110415/src/import.cc:54:64: performance: Function parameter 's' should be passed by const reference. [passedByValue] owx-0~20110415/src/import.cc:74:68: performance: Function parameter 's' should be passed by const reference. [passedByValue] owx-0~20110415/src/import.cc:84:62: performance: Function parameter 's' should be passed by const reference. [passedByValue] owx-0~20110415/src/import.cc:94:63: performance: Function parameter 's' should be passed by const reference. [passedByValue] owx-0~20110415/src/import.cc:104:62: performance: Function parameter 's' should be passed by const reference. [passedByValue] owx-0~20110415/src/import.cc:139:69: performance: Function parameter 's' should be passed by const reference. [passedByValue] owx-0~20110415/src/import.cc:209:66: performance: Function parameter 's' should be passed by const reference. [passedByValue] owx-0~20110415/src/owx.cc:98:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] owx-0~20110415/src/owx.cc:44:51: performance: Function parameter 'av0' should be passed by const reference. [passedByValue] owx-0~20110415/src/util.cc:37:2: portability: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] owx-0~20110415/src/util.cc:8:46: performance: Function parameter 's' should be passed by const reference. [passedByValue] owx-0~20110415/src/wouxun.h:17:7: performance:inconclusive: Technically the member function 'CWouxun::PrepareAddress' can be static (but you may consider moving to unnamed namespace). [functionStatic] owx-0~20110415/src/wouxun.cc:54:15: note: Technically the member function 'CWouxun::PrepareAddress' can be static (but you may consider moving to unnamed namespace). owx-0~20110415/src/wouxun.h:17:7: note: Technically the member function 'CWouxun::PrepareAddress' can be static (but you may consider moving to unnamed namespace). diff: head owx-0~20110415/src/cmds.cc:162:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head owx-0~20110415/src/comm.cc:112:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head owx-0~20110415/src/comm.cc:69:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head owx-0~20110415/src/file.cc:37:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head owx-0~20110415/src/file.cc:67:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head owx-0~20110415/src/file.cc:83:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head owx-0~20110415/src/file.cc:92:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head owx-0~20110415/src/file.h:28:3: style: The destructor '~CFileRead' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] owx-0~20110415/src/file.h:16:11: note: Virtual destructor in base class owx-0~20110415/src/file.h:28:3: note: Destructor in derived class head owx-0~20110415/src/file.h:38:3: style: The destructor '~CFileWrite' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] owx-0~20110415/src/file.h:16:11: note: Virtual destructor in base class owx-0~20110415/src/file.h:38:3: note: Destructor in derived class DONE