2025-05-10 00:46 ftp://ftp.de.debian.org/debian/pool/main/d/darkice/darkice_1.5.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 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: b3c7f00 (2025-05-09 17:59:20 +0200) count: 76 63 elapsed-time: 0.5 0.5 head-timing-info: old-timing-info: head results: darkice-1.5/src/BufferedSink.cpp:55:0: error: #error need string.h [preprocessorErrorDirective] darkice-1.5/src/BufferedSink.cpp:55:2: error: #error need string.h [preprocessorErrorDirective] darkice-1.5/src/Reporter.h:46:0: error: #error need unistd.h [preprocessorErrorDirective] darkice-1.5/src/Reporter.h:46:2: error: #error need unistd.h [preprocessorErrorDirective] darkice-1.5/src/Exception.h:128:9: warning: Member variable 'Exception::file' is not initialized in the copy constructor. [uninitMemberVar] darkice-1.5/src/Exception.h:128:9: warning: Member variable 'Exception::line' is not initialized in the copy constructor. [uninitMemberVar] darkice-1.5/src/Exception.h:128:9: warning: Member variable 'Exception::description' is not initialized in the copy constructor. [uninitMemberVar] darkice-1.5/src/Exception.h:128:9: warning: Member variable 'Exception::code' is not initialized in the copy constructor. [uninitMemberVar] darkice-1.5/src/Exception.h:140:9: style: Class 'Exception' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] darkice-1.5/src/ConfigSection.h:106:10: style: The destructor '~ConfigSection' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] darkice-1.5/src/Referable.h:102:10: note: Virtual destructor in base class darkice-1.5/src/ConfigSection.h:106:10: note: Destructor in derived class darkice-1.5/src/DarkIce.cpp:40:0: error: #error need stdlib.h [preprocessorErrorDirective] darkice-1.5/src/DarkIce.cpp:40:2: error: #error need stdlib.h [preprocessorErrorDirective] darkice-1.5/src/Exception.cpp:39:0: error: #error need string.h [preprocessorErrorDirective] darkice-1.5/src/Exception.cpp:39:2: error: #error need string.h [preprocessorErrorDirective] darkice-1.5/src/DarkIceConfig.h:187:9: style: Virtual function 'read' is called from constructor 'Config(std::istream&is)' at line 128. Dynamic binding is not used. [virtualCallInConstructor] darkice-1.5/src/DarkIceConfig.h:128:13: note: Calling read darkice-1.5/src/DarkIceConfig.h:187:9: note: read is a virtual function darkice-1.5/src/DarkIceConfig.h:126:9: style: Class 'Config' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] darkice-1.5/src/DarkIceConfig.h:137:10: style: The destructor '~Config' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] darkice-1.5/src/Referable.h:102:10: note: Virtual destructor in base class darkice-1.5/src/DarkIceConfig.h:137:10: note: Destructor in derived class darkice-1.5/src/FileCast.cpp:39:0: error: #error need stdio.h [preprocessorErrorDirective] darkice-1.5/src/FileCast.cpp:39:2: error: #error need stdio.h [preprocessorErrorDirective] darkice-1.5/src/FileSink.cpp:39:0: error: #error need unistd.h [preprocessorErrorDirective] darkice-1.5/src/FileSink.cpp:39:2: error: #error need unistd.h [preprocessorErrorDirective] darkice-1.5/src/IceCast.cpp:39:0: error: #error need stdio.h [preprocessorErrorDirective] darkice-1.5/src/IceCast.cpp:39:2: error: #error need stdio.h [preprocessorErrorDirective] darkice-1.5/src/IceCast2.cpp:39:0: error: #error need stdio.h [preprocessorErrorDirective] darkice-1.5/src/IceCast2.cpp:39:2: error: #error need stdio.h [preprocessorErrorDirective] darkice-1.5/src/MultiThreadedConnector.cpp:39:0: error: #error need sys/types.h [preprocessorErrorDirective] darkice-1.5/src/MultiThreadedConnector.cpp:39:2: error: #error need sys/types.h [preprocessorErrorDirective] darkice-1.5/src/ShoutCast.cpp:39:0: error: #error need stdio.h [preprocessorErrorDirective] darkice-1.5/src/ShoutCast.cpp:39:2: error: #error need stdio.h [preprocessorErrorDirective] darkice-1.5/src/TcpSocket.cpp:39:0: error: #error need string.h [preprocessorErrorDirective] darkice-1.5/src/TcpSocket.cpp:39:2: error: #error need string.h [preprocessorErrorDirective] darkice-1.5/src/Util.cpp:39:0: error: #error need errno.h [preprocessorErrorDirective] darkice-1.5/src/Util.cpp:39:2: error: #error need errno.h [preprocessorErrorDirective] darkice-1.5/src/aflibDebug.cc:81:84: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lDebug [valueFlowBailoutIncompleteVar] darkice-1.5/src/aflibDebug.cc:144:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lDebug [valueFlowBailoutIncompleteVar] darkice-1.5/src/aflibDebug.cc:180:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lFatal [valueFlowBailoutIncompleteVar] darkice-1.5/src/aflibDebug.cc:188:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lWarning [valueFlowBailoutIncompleteVar] darkice-1.5/src/aflibDebug.cc:201:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lInfo [valueFlowBailoutIncompleteVar] darkice-1.5/src/aflibDebug.cc:214:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lDebug [valueFlowBailoutIncompleteVar] darkice-1.5/src/main.cpp:43:0: error: #error needs stdlib.h [preprocessorErrorDirective] darkice-1.5/src/main.cpp:43:2: error: #error needs stdlib.h [preprocessorErrorDirective] darkice-1.5/src/aflibDebug.cc:128:3: warning:inconclusive: The buffer 'lastMsg' may not be null-terminated after the call to strncpy(). [terminateStrncpy] darkice-1.5/src/aflibDebug.cc:227:4: error: Common realloc mistake: 'messageAppName' nulled but not freed upon failure [memleakOnRealloc] darkice-1.5/src/aflibDebug.cc:227:21: style: C-style pointer casting [cstyleCast] darkice-1.5/src/aflibConverter.cc:114:17: warning: Member variable 'aflibConverter::_Time' is not initialized in the constructor. [uninitMemberVar] darkice-1.5/src/aflibConverter.cc:114:17: warning: Member variable 'aflibConverter::_factor' is not initialized in the constructor. [uninitMemberVar] darkice-1.5/src/aflibConverter.cc:114:17: warning: Member variable 'aflibConverter::_nChans' is not initialized in the constructor. [uninitMemberVar] darkice-1.5/src/aflibConverter.cc:114:17: warning: Member variable 'aflibConverter::_initial' is not initialized in the constructor. [uninitMemberVar] darkice-1.5/src/aflibConverter.cc:229:17: performance:inconclusive: Technically the member function 'aflibConverter::err_ret' can be static (but you may consider moving to unnamed namespace). [functionStatic] darkice-1.5/src/aflibConverter.h:113:4: note: Technically the member function 'aflibConverter::err_ret' can be static (but you may consider moving to unnamed namespace). darkice-1.5/src/aflibConverter.cc:229:17: note: Technically the member function 'aflibConverter::err_ret' can be static (but you may consider moving to unnamed namespace). darkice-1.5/src/aflibConverter.cc:669:17: performance:inconclusive: Technically the member function 'aflibConverter::FilterUp' can be static (but you may consider moving to unnamed namespace). [functionStatic] darkice-1.5/src/aflibConverter.h:182:4: note: Technically the member function 'aflibConverter::FilterUp' can be static (but you may consider moving to unnamed namespace). darkice-1.5/src/aflibConverter.cc:669:17: note: Technically the member function 'aflibConverter::FilterUp' can be static (but you may consider moving to unnamed namespace). darkice-1.5/src/aflibConverter.cc:737:17: performance:inconclusive: Technically the member function 'aflibConverter::FilterUD' can be static (but you may consider moving to unnamed namespace). [functionStatic] darkice-1.5/src/aflibConverter.h:192:4: note: Technically the member function 'aflibConverter::FilterUD' can be static (but you may consider moving to unnamed namespace). darkice-1.5/src/aflibConverter.cc:737:17: note: Technically the member function 'aflibConverter::FilterUD' can be static (but you may consider moving to unnamed namespace). darkice-1.5/src/aflibConverter.cc:140:8: style: The scope of the variable 'i' can be reduced. [variableScope] darkice-1.5/src/aflibConverter.cc:246:11: style: The scope of the variable 'ptr' can be reduced. [variableScope] darkice-1.5/src/aflibConverter.cc:285:8: style: The scope of the variable 'iconst' can be reduced. [variableScope] darkice-1.5/src/aflibConverter.cc:286:9: style: The scope of the variable 'Xp' can be reduced. [variableScope] darkice-1.5/src/aflibConverter.cc:287:6: style: The scope of the variable 'v' can be reduced. [variableScope] darkice-1.5/src/aflibConverter.cc:287:8: style: The scope of the variable 'x1' can be reduced. [variableScope] darkice-1.5/src/aflibConverter.cc:287:11: style: The scope of the variable 'x2' can be reduced. [variableScope] darkice-1.5/src/aflibConverter.cc:338:9: style: The scope of the variable 'Xp' can be reduced. [variableScope] darkice-1.5/src/aflibConverter.cc:339:6: style: The scope of the variable 'v' can be reduced. [variableScope] darkice-1.5/src/aflibConverter.cc:392:9: style: The scope of the variable 'Xp' can be reduced. [variableScope] darkice-1.5/src/aflibConverter.cc:393:6: style: The scope of the variable 'v' can be reduced. [variableScope] darkice-1.5/src/aflibConverter.cc:747:8: style: The scope of the variable 'a' can be reduced. [variableScope] darkice-1.5/src/aflibConverter.cc:748:14: style: The scope of the variable 'Hdp' can be reduced. [variableScope] darkice-1.5/src/aflibConverter.cc:475:13: style: Checking if unsigned expression 'Nx' is less than zero. [unsignedLessThanZero] darkice-1.5/src/aflibConverter.cc:591:12: style: Checking if unsigned expression 'Nx' is less than zero. [unsignedLessThanZero] darkice-1.5/src/aflibConverter.cc:161:11: style:inconclusive: Function 'initialize' argument 1 names different: declaration 'factor' definition 'fac'. [funcArgNamesDifferent] darkice-1.5/src/aflibConverter.h:91:14: note: Function 'initialize' argument 1 names different: declaration 'factor' definition 'fac'. darkice-1.5/src/aflibConverter.cc:161:11: note: Function 'initialize' argument 1 names different: declaration 'factor' definition 'fac'. darkice-1.5/src/aflibConverter.cc:238:16: style: Parameter 'inArray' can be declared as const array [constParameter] darkice-1.5/src/aflibConverter.cc:286:9: style: Variable 'Xp' can be declared as pointer to const [constVariablePointer] darkice-1.5/src/aflibConverter.cc:678:27: style: Variable 'End' can be declared as pointer to const [constVariablePointer] darkice-1.5/src/aflibConverter.cc:748:9: style: Variable 'Hp' can be declared as pointer to const [constVariablePointer] darkice-1.5/src/aflibConverter.cc:748:14: style: Variable 'Hdp' can be declared as pointer to const [constVariablePointer] darkice-1.5/src/aflibConverter.cc:748:20: style: Variable 'End' can be declared as pointer to const [constVariablePointer] darkice-1.5/src/aflibConverter.cc:492:8: warning: Uninitialized variable: orig_Nx [uninitvar] darkice-1.5/src/aflibConverter.cc:485:21: note: Assuming condition is false darkice-1.5/src/aflibConverter.cc:492:8: note: Uninitialized variable: orig_Nx darkice-1.5/src/aflibConverter.cc:493:15: warning: Uninitialized variable: Time2 [uninitvar] darkice-1.5/src/aflibConverter.cc:485:21: note: Assuming condition is false darkice-1.5/src/aflibConverter.cc:493:15: note: Uninitialized variable: Time2 darkice-1.5/src/aflibConverter.cc:614:15: warning: Uninitialized variable: Time2 [uninitvar] darkice-1.5/src/aflibConverter.cc:601:21: note: Assuming condition is false darkice-1.5/src/aflibConverter.cc:614:15: note: Uninitialized variable: Time2 diff: head darkice-1.5/src/BufferedSink.cpp:55:2: error: #error need string.h [preprocessorErrorDirective] head darkice-1.5/src/DarkIce.cpp:40:2: error: #error need stdlib.h [preprocessorErrorDirective] head darkice-1.5/src/Exception.cpp:39:2: error: #error need string.h [preprocessorErrorDirective] head darkice-1.5/src/FileCast.cpp:39:2: error: #error need stdio.h [preprocessorErrorDirective] head darkice-1.5/src/FileSink.cpp:39:2: error: #error need unistd.h [preprocessorErrorDirective] head darkice-1.5/src/IceCast.cpp:39:2: error: #error need stdio.h [preprocessorErrorDirective] head darkice-1.5/src/IceCast2.cpp:39:2: error: #error need stdio.h [preprocessorErrorDirective] head darkice-1.5/src/MultiThreadedConnector.cpp:39:2: error: #error need sys/types.h [preprocessorErrorDirective] head darkice-1.5/src/Reporter.h:46:2: error: #error need unistd.h [preprocessorErrorDirective] head darkice-1.5/src/ShoutCast.cpp:39:2: error: #error need stdio.h [preprocessorErrorDirective] head darkice-1.5/src/TcpSocket.cpp:39:2: error: #error need string.h [preprocessorErrorDirective] head darkice-1.5/src/Util.cpp:39:2: error: #error need errno.h [preprocessorErrorDirective] head darkice-1.5/src/aflibConverter.cc:229:17: performance:inconclusive: Technically the member function 'aflibConverter::err_ret' can be static (but you may consider moving to unnamed namespace). [functionStatic] darkice-1.5/src/aflibConverter.h:113:4: note: Technically the member function 'aflibConverter::err_ret' can be static (but you may consider moving to unnamed namespace). darkice-1.5/src/aflibConverter.cc:229:17: note: Technically the member function 'aflibConverter::err_ret' can be static (but you may consider moving to unnamed namespace). head darkice-1.5/src/aflibConverter.cc:669:17: performance:inconclusive: Technically the member function 'aflibConverter::FilterUp' can be static (but you may consider moving to unnamed namespace). [functionStatic] darkice-1.5/src/aflibConverter.h:182:4: note: Technically the member function 'aflibConverter::FilterUp' can be static (but you may consider moving to unnamed namespace). darkice-1.5/src/aflibConverter.cc:669:17: note: Technically the member function 'aflibConverter::FilterUp' can be static (but you may consider moving to unnamed namespace). head darkice-1.5/src/aflibConverter.cc:737:17: performance:inconclusive: Technically the member function 'aflibConverter::FilterUD' can be static (but you may consider moving to unnamed namespace). [functionStatic] darkice-1.5/src/aflibConverter.h:192:4: note: Technically the member function 'aflibConverter::FilterUD' can be static (but you may consider moving to unnamed namespace). darkice-1.5/src/aflibConverter.cc:737:17: note: Technically the member function 'aflibConverter::FilterUD' can be static (but you may consider moving to unnamed namespace). 2.17.0 darkice-1.5/src/aflibConverter.h:113:4: performance:inconclusive: Technically the member function 'aflibConverter::err_ret' can be static (but you may consider moving to unnamed namespace). [functionStatic] darkice-1.5/src/aflibConverter.cc:229:17: note: Technically the member function 'aflibConverter::err_ret' can be static (but you may consider moving to unnamed namespace). darkice-1.5/src/aflibConverter.h:113:4: note: Technically the member function 'aflibConverter::err_ret' can be static (but you may consider moving to unnamed namespace). 2.17.0 darkice-1.5/src/aflibConverter.h:182:4: performance:inconclusive: Technically the member function 'aflibConverter::FilterUp' can be static (but you may consider moving to unnamed namespace). [functionStatic] darkice-1.5/src/aflibConverter.cc:669:17: note: Technically the member function 'aflibConverter::FilterUp' can be static (but you may consider moving to unnamed namespace). darkice-1.5/src/aflibConverter.h:182:4: note: Technically the member function 'aflibConverter::FilterUp' can be static (but you may consider moving to unnamed namespace). 2.17.0 darkice-1.5/src/aflibConverter.h:192:4: performance:inconclusive: Technically the member function 'aflibConverter::FilterUD' can be static (but you may consider moving to unnamed namespace). [functionStatic] darkice-1.5/src/aflibConverter.cc:737:17: note: Technically the member function 'aflibConverter::FilterUD' can be static (but you may consider moving to unnamed namespace). darkice-1.5/src/aflibConverter.h:192:4: note: Technically the member function 'aflibConverter::FilterUD' can be static (but you may consider moving to unnamed namespace). head darkice-1.5/src/main.cpp:43:2: error: #error needs stdlib.h [preprocessorErrorDirective] DONE