2026-05-01 18:14 ftp://ftp.de.debian.org/debian/pool/main/e/enet/enet_1.3.18+ds.orig.tar.xz 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 -j6 platform: Linux-7.0.3+deb14-amd64-x86_64-with-glibc2.42 python: 3.13.12 client-version: 1.4.0 compiler: g++ (Debian 15.2.0-17) 15.2.0 cppcheck: head 2.20.0 head-info: e5c4a734 (2026-05-01 11:10:43 +0200) count: 97 97 elapsed-time: 0.3 0.2 head-timing-info: old-timing-info: head results: enet-1.3.18+ds/callbacks.c:34:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_VERSION [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/packet.c:22:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENetPacket [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/packet.c:64:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PACKET_FLAG_NO_ALLOCATE [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/packet.c:81:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PACKET_FLAG_NO_ALLOCATE [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/packet.c:29:20: style: Checking if unsigned expression 'dataLength' is less than zero. [unsignedLessThanZero] enet-1.3.18+ds/host.c:34:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PROTOCOL_MAXIMUM_PEER_ID [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/host.c:190:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PROTOCOL_MINIMUM_CHANNEL_COUNT [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/host.c:280:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PEER_STATE_CONNECTED [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/host.c:313:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PROTOCOL_MAXIMUM_CHANNEL_COUNT [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/host.c:352:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_HOST_BANDWIDTH_THROTTLE_INTERVAL [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/unix.c:160:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/unix.c:231:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable in_addr [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/unix.c:252:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_in [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/unix.c:276:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_in [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/unix.c:296:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PF_INET [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/unix.c:309:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FIONBIO [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/unix.c:390:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_in [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/unix.c:408:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_in [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/unix.c:449:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable msghdr [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/unix.c:489:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable msghdr [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/unix.c:588:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_SOCKET_WAIT_SEND [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/peer.c:51:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PROTOCOL_COMMAND_THROTTLE_CONFIGURE [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/peer.c:113:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PEER_STATE_CONNECTED [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/peer.c:320:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PEER_FLAG_NEEDS_DISPATCH [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/peer.c:355:72: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PEER_STATE_DISCONNECT_LATER [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/peer.c:367:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PEER_STATE_CONNECTED [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/peer.c:386:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PROTOCOL_MAXIMUM_PEER_ID [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/peer.c:450:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PEER_STATE_CONNECTED [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/peer.c:471:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PEER_PING_INTERVAL [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/peer.c:494:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PEER_TIMEOUT_LIMIT [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/peer.c:511:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PEER_STATE_DISCONNECTED [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/peer.c:542:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PEER_STATE_DISCONNECTING [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/peer.c:594:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PEER_STATE_CONNECTED [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/peer.c:612:81: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PEER_RELIABLE_WINDOW_SIZE [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/peer.c:652:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PROTOCOL_COMMAND_FLAG_ACKNOWLEDGE [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/peer.c:708:90: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENetOutgoingCommand [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/peer.c:735:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PROTOCOL_COMMAND_MASK [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/peer.c:835:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PEER_FLAG_NEEDS_DISPATCH [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/peer.c:858:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PEER_STATE_DISCONNECT_LATER [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/unix.c:157:17: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] enet-1.3.18+ds/unix.c:231:17: style: Obsolescent function 'gethostbyaddr' called. It is recommended to use 'getnameinfo' instead. [prohibitedgethostbyaddrCalled] enet-1.3.18+ds/unix.c:177:12: style: Variable 'addr' can be declared as pointer to const [constVariablePointer] enet-1.3.18+ds/unix.c:215:22: style: Variable 'hostEntry' can be declared as pointer to const [constVariablePointer] enet-1.3.18+ds/host.c:272:33: style: Parameter 'host' can be declared as pointer to const [constParameterPointer] enet-1.3.18+ds/protocol.c:32:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PROTOCOL_COMMAND_MASK [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/protocol.c:38:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PEER_STATE_CONNECTED [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/protocol.c:51:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PEER_FLAG_NEEDS_DISPATCH [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/protocol.c:66:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PEER_FLAG_NEEDS_DISPATCH [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/protocol.c:126:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PEER_STATE_CONNECTED [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/protocol.c:139:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PEER_STATE_CONNECTION_PENDING [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/protocol.c:181:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PACKET_FLAG_SENT [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/protocol.c:206:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PROTOCOL_COMMAND_FLAG_ACKNOWLEDGE [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/protocol.c:249:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PROTOCOL_COMMAND_NONE [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/protocol.c:306:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PROTOCOL_MINIMUM_CHANNEL_COUNT [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/protocol.c:452:73: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PEER_STATE_DISCONNECT_LATER [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/protocol.c:475:73: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PEER_STATE_DISCONNECT_LATER [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/protocol.c:520:73: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PEER_STATE_DISCONNECT_LATER [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/protocol.c:551:73: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PEER_STATE_DISCONNECT_LATER [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/protocol.c:663:73: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PEER_STATE_DISCONNECT_LATER [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/protocol.c:768:72: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PEER_STATE_DISCONNECT_LATER [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/protocol.c:777:72: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PEER_STATE_DISCONNECT_LATER [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/protocol.c:811:72: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PEER_STATE_DISCONNECT_LATER [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/protocol.c:824:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PEER_STATE_DISCONNECTED [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/protocol.c:858:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PEER_STATE_DISCONNECTED [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/protocol.c:954:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PEER_STATE_CONNECTING [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/protocol.c:1021:79: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sentTime [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/protocol.c:1269:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_EVENT_TYPE_NONE [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/protocol.c:1311:79: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENetProtocol [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/protocol.c:1446:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_PROTOCOL_COMMAND_FLAG_ACKNOWLEDGE [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/protocol.c:1602:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENetProtocolHeader [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/protocol.c:1773:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_EVENT_TYPE_NONE [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/protocol.c:1800:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENET_EVENT_TYPE_NONE [valueFlowBailoutIncompleteVar] enet-1.3.18+ds/peer.c:109:18: style: Variable 'channel' can be declared as pointer to const [constVariablePointer] enet-1.3.18+ds/peer.c:279:137: style: Parameter 'excludeCommand' can be declared as pointer to const [constParameterPointer] enet-1.3.18+ds/peer.c:611:23: style: Variable 'channel' can be declared as pointer to const [constVariablePointer] enet-1.3.18+ds/peer.c:733:30: style: Variable 'incomingCommand' can be declared as pointer to const [constVariablePointer] enet-1.3.18+ds/peer.c:816:30: style: Variable 'incomingCommand' can be declared as pointer to const [constVariablePointer] enet-1.3.18+ds/protocol.c:1146:47: style: Condition 'enet_protocol_handle_disconnect(host,peer,command)' is always false [knownConditionTrueFalse] enet-1.3.18+ds/protocol.c:1146:47: note: Calling function 'enet_protocol_handle_disconnect' returns 0 enet-1.3.18+ds/protocol.c:1146:47: note: Condition 'enet_protocol_handle_disconnect(host,peer,command)' is always false enet-1.3.18+ds/protocol.c:1065:26: style: Checking if unsigned expression 'originalSize' is less than zero. [unsignedLessThanZero] enet-1.3.18+ds/protocol.c:1031:63: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] enet-1.3.18+ds/protocol.c:447:48: style: Parameter 'host' can be declared as pointer to const [constParameterPointer] enet-1.3.18+ds/protocol.c:469:51: style: Parameter 'host' can be declared as pointer to const [constParameterPointer] enet-1.3.18+ds/protocol.c:515:50: style: Parameter 'host' can be declared as pointer to const [constParameterPointer] enet-1.3.18+ds/protocol.c:537:48: style: Parameter 'host' can be declared as pointer to const [constParameterPointer] enet-1.3.18+ds/protocol.c:648:59: style: Parameter 'host' can be declared as pointer to const [constParameterPointer] enet-1.3.18+ds/protocol.c:766:39: style: Parameter 'host' can be declared as pointer to const [constParameterPointer] enet-1.3.18+ds/protocol.c:766:56: style: Parameter 'peer' can be declared as pointer to const [constParameterPointer] enet-1.3.18+ds/compress.c:257:45: style: Checking if unsigned expression 'inBufferCount' is less than zero. [unsignedLessThanZero] enet-1.3.18+ds/compress.c:257:61: style: Checking if unsigned expression 'inLimit' is less than zero. [unsignedLessThanZero] enet-1.3.18+ds/compress.c:277:31: style: Checking if unsigned expression 'inBufferCount' is less than zero. [unsignedLessThanZero] enet-1.3.18+ds/compress.c:513:39: style: Checking if unsigned expression 'inLimit' is less than zero. [unsignedLessThanZero] enet-1.3.18+ds/compress.c:250:18: style: Variable 'outStart' can be declared as pointer to const [constVariablePointer] enet-1.3.18+ds/compress.c:250:40: style: Variable 'outEnd' can be declared as pointer to const [constVariablePointer] enet-1.3.18+ds/compress.c:502:18: style: Variable 'outStart' can be declared as pointer to const [constVariablePointer] enet-1.3.18+ds/compress.c:502:40: style: Variable 'outEnd' can be declared as pointer to const [constVariablePointer] enet-1.3.18+ds/compress.c:320:16: style: Variable 'parent' is assigned a value that is never used. [unreadVariable] enet-1.3.18+ds/compress.c:603:13: style: Variable 'under' is assigned a value that is never used. [unreadVariable] diff: DONE