2024-04-23 05:45 ftp://ftp.de.debian.org/debian/pool/main/w/wpan-tools/wpan-tools_0.9.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.14.0 head-info: 642cdfd (2024-04-23 07:24:14 +0200) count: 52 52 elapsed-time: 0.6 0.6 head-timing-info: old-timing-info: head results: wpan-tools-0.9/examples/af_ieee802154_rx.c:71:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_IEEE802154 [valueFlowBailoutIncompleteVar] wpan-tools-0.9/examples/af_ieee802154_rx.c:60:10: style: Variable 'long_addr' can be declared as const array [constVariable] wpan-tools-0.9/examples/af_ieee802154_rx.c:45:12: style: struct member 'ieee802154_addr_sa::short_addr' is never used. [unusedStructMember] wpan-tools-0.9/examples/af_ieee802154_tx.c:71:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_IEEE802154 [valueFlowBailoutIncompleteVar] wpan-tools-0.9/examples/af_ieee802154_tx.c:60:10: style: Variable 'long_addr' can be declared as const array [constVariable] wpan-tools-0.9/examples/af_ieee802154_tx.c:45:12: style: struct member 'ieee802154_addr_sa::short_addr' is never used. [unusedStructMember] wpan-tools-0.9/examples/af_inet6_rx.c:38:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INET6_ADDRSTRLEN [valueFlowBailoutIncompleteVar] wpan-tools-0.9/examples/af_inet6_tx.c:58:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] wpan-tools-0.9/examples/af_inet6_tx.c:53:3: error: Resource leak: sd [resourceLeak] wpan-tools-0.9/examples/af_packet_rx.c:57:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFNAMSIZ [valueFlowBailoutIncompleteVar] wpan-tools-0.9/examples/af_packet_tx.c:56:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFNAMSIZ [valueFlowBailoutIncompleteVar] wpan-tools-0.9/src/info.c:337:4: error: There is an unknown macro here somewhere. Configuration is required. If nla_for_each_nested is a macro then please configure it. [unknownMacro] wpan-tools-0.9/src/interface.c:66:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] wpan-tools-0.9/src/interface.c:109:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] wpan-tools-0.9/src/interface.c:156:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOBUFS [valueFlowBailoutIncompleteVar] wpan-tools-0.9/src/interface.c:206:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] wpan-tools-0.9/src/interface.c:83:7: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] wpan-tools-0.9/src/interface.c:191:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] wpan-tools-0.9/src/interface.c:155:1: style: Label 'nla_put_failure' is not used. [unusedLabel] wpan-tools-0.9/src/interface.c:43:8: style: Variable 'tpstr' can be declared as pointer to const [constVariablePointer] wpan-tools-0.9/src/interface.c:72:60: style: Parameter 'arg' can be declared as pointer to const [constParameterPointer] wpan-tools-0.9/src/interface.c:165:56: style: Parameter 'state' can be declared as pointer to const. However it seems that 'handle_interface_del' is a callback function, if 'state' is declared with const you might also need to cast function pointer(s). [constParameterCallback] wpan-tools-0.9/src/interface.c:175:1: note: You might need to cast the function pointer here wpan-tools-0.9/src/interface.c:165:56: note: Parameter 'state' can be declared as pointer to const wpan-tools-0.9/src/interface.c:166:19: style: Parameter 'cb' can be declared as pointer to const. However it seems that 'handle_interface_del' is a callback function, if 'cb' is declared with const you might also need to cast function pointer(s). [constParameterCallback] wpan-tools-0.9/src/interface.c:175:1: note: You might need to cast the function pointer here wpan-tools-0.9/src/interface.c:166:19: note: Parameter 'cb' can be declared as pointer to const wpan-tools-0.9/src/interface.c:167:20: style: Parameter 'msg' can be declared as pointer to const. However it seems that 'handle_interface_del' is a callback function, if 'msg' is declared with const you might also need to cast function pointer(s). [constParameterCallback] wpan-tools-0.9/src/interface.c:175:1: note: You might need to cast the function pointer here wpan-tools-0.9/src/interface.c:167:20: note: Parameter 'msg' can be declared as pointer to const wpan-tools-0.9/src/iwpan.c:177:39: error: There is an unknown macro here somewhere. Configuration is required. If PACKAGE_VERSION is a macro then please configure it. [unknownMacro] wpan-tools-0.9/src/mac.c:41:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOBUFS [valueFlowBailoutIncompleteVar] wpan-tools-0.9/src/mac.c:71:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOBUFS [valueFlowBailoutIncompleteVar] wpan-tools-0.9/src/mac.c:101:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOBUFS [valueFlowBailoutIncompleteVar] wpan-tools-0.9/src/mac.c:139:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOBUFS [valueFlowBailoutIncompleteVar] wpan-tools-0.9/src/mac.c:170:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOBUFS [valueFlowBailoutIncompleteVar] wpan-tools-0.9/src/mac.c:202:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOBUFS [valueFlowBailoutIncompleteVar] wpan-tools-0.9/src/mac.c:232:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOBUFS [valueFlowBailoutIncompleteVar] wpan-tools-0.9/src/mac.c:40:1: style: Label 'nla_put_failure' is not used. [unusedLabel] wpan-tools-0.9/src/mac.c:70:1: style: Label 'nla_put_failure' is not used. [unusedLabel] wpan-tools-0.9/src/mac.c:100:1: style: Label 'nla_put_failure' is not used. [unusedLabel] wpan-tools-0.9/src/mac.c:138:1: style: Label 'nla_put_failure' is not used. [unusedLabel] wpan-tools-0.9/src/mac.c:169:1: style: Label 'nla_put_failure' is not used. [unusedLabel] wpan-tools-0.9/src/mac.c:201:1: style: Label 'nla_put_failure' is not used. [unusedLabel] wpan-tools-0.9/src/mac.c:231:1: style: Label 'nla_put_failure' is not used. [unusedLabel] wpan-tools-0.9/src/phy.c:52:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOBUFS [valueFlowBailoutIncompleteVar] wpan-tools-0.9/src/phy.c:79:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOBUFS [valueFlowBailoutIncompleteVar] wpan-tools-0.9/src/phy.c:120:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOBUFS [valueFlowBailoutIncompleteVar] wpan-tools-0.9/src/phy.c:147:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOBUFS [valueFlowBailoutIncompleteVar] wpan-tools-0.9/src/phy.c:157:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXPATHLEN [valueFlowBailoutIncompleteVar] wpan-tools-0.9/src/phy.c:205:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOBUFS [valueFlowBailoutIncompleteVar] wpan-tools-0.9/src/phy.c:51:1: style: Label 'nla_put_failure' is not used. [unusedLabel] wpan-tools-0.9/src/phy.c:78:1: style: Label 'nla_put_failure' is not used. [unusedLabel] wpan-tools-0.9/src/phy.c:119:1: style: Label 'nla_put_failure' is not used. [unusedLabel] wpan-tools-0.9/src/phy.c:146:1: style: Label 'nla_put_failure' is not used. [unusedLabel] wpan-tools-0.9/src/phy.c:204:2: style: Label 'nla_put_failure' is not used. [unusedLabel] wpan-tools-0.9/wpan-hwsim/wpan-hwsim.c:380:23: error: There is an unknown macro here somewhere. Configuration is required. If PACKAGE_VERSION is a macro then please configure it. [unknownMacro] wpan-tools-0.9/wpan-ping/wpan-ping.c:542:33: error: There is an unknown macro here somewhere. Configuration is required. If PACKAGE_VERSION is a macro then please configure it. [unknownMacro] diff: DONE