2025-06-30 17:00 ftp://ftp.de.debian.org/debian/pool/main/s/sidplayfp/sidplayfp_2.12.0.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 -j6 platform: Linux-6.1.0-37-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.67 compiler: g++ (Debian 12.2.0-14+deb12u1) 12.2.0 cppcheck: head 2.17.0 head-info: 1cff895 (2025-06-30 17:30:57 +0200) count: 59 58 elapsed-time: 0.1 0.1 head-timing-info: old-timing-info: head results: sidplayfp-2.12.0/src/sidcxx11.h:40:0: error: #error "This is not a C++11 compiler" [preprocessorErrorDirective] sidplayfp-2.12.0/src/sidcxx11.h:40:4: error: #error "This is not a C++11 compiler" [preprocessorErrorDirective] sidplayfp-2.12.0/src/audio/AudioBase.h:66:5: style: Class 'AudioBase' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] sidplayfp-2.12.0/src/audio/AudioBase.h:42:9: style: Class 'error' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] sidplayfp-2.12.0/src/audio/AudioDrv.cpp:98:8: style: Condition '!res' is always true [knownConditionTrueFalse] sidplayfp-2.12.0/src/audio/AudioDrv.cpp:54:16: note: Assignment 'res=false', assigned value is 0 sidplayfp-2.12.0/src/audio/AudioDrv.cpp:98:8: note: Condition '!res' is always true sidplayfp-2.12.0/src/audio/null/null.h:51:10: style: Virtual function 'close' is called from destructor '~Audio_Null()' at line 29. Dynamic binding is not used. [virtualCallInConstructor] sidplayfp-2.12.0/src/audio/null/null.cpp:29:5: note: Calling close sidplayfp-2.12.0/src/audio/null/null.h:51:10: note: close is a virtual function sidplayfp-2.12.0/src/codeConvert.cpp:29:26: performance:inconclusive: Technically the member function 'codeConvert::convert' can be static (but you may consider moving to unnamed namespace). [functionStatic] sidplayfp-2.12.0/src/codeConvert.h:51:17: note: Technically the member function 'codeConvert::convert' can be static (but you may consider moving to unnamed namespace). sidplayfp-2.12.0/src/codeConvert.cpp:29:26: note: Technically the member function 'codeConvert::convert' can be static (but you may consider moving to unnamed namespace). sidplayfp-2.12.0/src/audio/out123/audiodrv.cpp:75:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPG123_ENC_SIGNED_16 [valueFlowBailoutIncompleteVar] sidplayfp-2.12.0/src/audio/out123/audiodrv.cpp:142:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OUT123_OK [valueFlowBailoutIncompleteVar] sidplayfp-2.12.0/src/audio/out123/audiodrv.h:50:10: style: Virtual function 'close' is called from destructor '~Audio_OUT123()' at line 34. Dynamic binding is not used. [virtualCallInConstructor] sidplayfp-2.12.0/src/audio/out123/audiodrv.cpp:34:5: note: Calling close sidplayfp-2.12.0/src/audio/out123/audiodrv.h:50:10: note: close is a virtual function sidplayfp-2.12.0/src/audio/au/auFile.cpp:231:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] sidplayfp-2.12.0/src/audio/au/auFile.cpp:289:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] sidplayfp-2.12.0/src/ini/iniHandler.cpp:60:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] sidplayfp-2.12.0/src/ini/iniHandler.cpp:72:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] sidplayfp-2.12.0/src/ini/iniHandler.cpp:221:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable endl [valueFlowBailoutIncompleteVar] sidplayfp-2.12.0/src/ini/iniHandler.cpp:56:24: performance:inconclusive: Technically the member function 'iniHandler::parseSection' can be static (but you may consider moving to unnamed namespace). [functionStatic] sidplayfp-2.12.0/src/ini/iniHandler.h:48:16: note: Technically the member function 'iniHandler::parseSection' can be static (but you may consider moving to unnamed namespace). sidplayfp-2.12.0/src/ini/iniHandler.cpp:56:24: note: Technically the member function 'iniHandler::parseSection' can be static (but you may consider moving to unnamed namespace). sidplayfp-2.12.0/src/ini/iniHandler.cpp:68:38: performance:inconclusive: Technically the member function 'iniHandler::parseKey' can be static (but you may consider moving to unnamed namespace). [functionStatic] sidplayfp-2.12.0/src/ini/iniHandler.h:50:18: note: Technically the member function 'iniHandler::parseKey' can be static (but you may consider moving to unnamed namespace). sidplayfp-2.12.0/src/ini/iniHandler.cpp:68:38: note: Technically the member function 'iniHandler::parseKey' can be static (but you may consider moving to unnamed namespace). sidplayfp-2.12.0/src/ini/iniHandler.cpp:40:5: style: Class 'compare < std :: pair < std :: string , std :: vector < std :: pair < std :: string , std :: string > > > >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] sidplayfp-2.12.0/src/ini/iniHandler.cpp:40:5: style: Class 'compare < std :: pair < std :: string , std :: string > >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] sidplayfp-2.12.0/src/ini/iniHandler.h:56:16: performance: Function 'getFilename()' should return member 'fileName' by const reference. [returnByReference] sidplayfp-2.12.0/src/menu.cpp:174:38: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] sidplayfp-2.12.0/src/main.cpp:59:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_ERR [valueFlowBailoutIncompleteVar] sidplayfp-2.12.0/src/audio/wav/WavFile.cpp:176:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] sidplayfp-2.12.0/src/audio/wav/WavFile.cpp:234:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] sidplayfp-2.12.0/src/IniConfig.h:125:30: style:inconclusive: Technically the member function 'IniConfig::sidplay2' can be const. [functionConst] sidplayfp-2.12.0/src/IniConfig.h:126:30: style:inconclusive: Technically the member function 'IniConfig::console' can be const. [functionConst] sidplayfp-2.12.0/src/IniConfig.h:127:30: style:inconclusive: Technically the member function 'IniConfig::audio' can be const. [functionConst] sidplayfp-2.12.0/src/IniConfig.h:128:30: style:inconclusive: Technically the member function 'IniConfig::emulation' can be const. [functionConst] sidplayfp-2.12.0/src/player.h:265:5: style: Class 'ConsolePlayer' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] sidplayfp-2.12.0/src/IniConfig.h:120:16: performance: Function 'getFilename()' should return member 'm_fileName' by const reference. [returnByReference] sidplayfp-2.12.0/src/audio/au/auFile.cpp:183:9: warning: Member variable 'auFile::byteCount' is not initialized in the constructor. [uninitMemberVar] sidplayfp-2.12.0/src/audio/au/auFile.cpp:183:9: warning: Member variable 'auFile::m_channels' is not initialized in the constructor. [uninitMemberVar] sidplayfp-2.12.0/src/audio/au/auFile.h:77:10: style: Virtual function 'close' is called from destructor '~auFile()' at line 65. Dynamic binding is not used. [virtualCallInConstructor] sidplayfp-2.12.0/src/audio/au/auFile.h:65:26: note: Calling close sidplayfp-2.12.0/src/audio/au/auFile.h:77:10: note: close is a virtual function sidplayfp-2.12.0/src/audio/au/auFile.h:64:5: style: Class 'auFile' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] sidplayfp-2.12.0/src/audio/au/auFile.cpp:88:16: style: C-style pointer casting [cstyleCast] sidplayfp-2.12.0/src/audio/au/auFile.cpp:250:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] sidplayfp-2.12.0/src/audio/au/auFile.cpp:261:42: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] sidplayfp-2.12.0/src/audio/au/auFile.cpp:263:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] sidplayfp-2.12.0/src/audio/au/auFile.cpp:273:42: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] sidplayfp-2.12.0/src/audio/au/auFile.cpp:275:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] sidplayfp-2.12.0/src/audio/au/auFile.cpp:292:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] sidplayfp-2.12.0/src/audio/au/auFile.cpp:273:42: portability:inconclusive: Casting from float * to unsigned char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] sidplayfp-2.12.0/src/audio/au/auFile.cpp:275:25: portability:inconclusive: Casting from float * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] sidplayfp-2.12.0/src/audio/au/auFile.cpp:202:20: style: The scope of the variable 'bufSize' can be reduced. [variableScope] sidplayfp-2.12.0/src/audio/au/auFile.cpp:242:35: style:inconclusive: Function 'write' argument 1 names different: declaration 'size' definition 'frames'. [funcArgNamesDifferent] sidplayfp-2.12.0/src/audio/au/auFile.h:76:31: note: Function 'write' argument 1 names different: declaration 'size' definition 'frames'. sidplayfp-2.12.0/src/audio/au/auFile.cpp:242:35: note: Function 'write' argument 1 names different: declaration 'size' definition 'frames'. sidplayfp-2.12.0/src/audio/wav/WavFile.cpp:120:10: warning: Member variable 'WavFile::dataSize' is not initialized in the constructor. [uninitMemberVar] sidplayfp-2.12.0/src/audio/wav/WavFile.cpp:120:10: warning: Member variable 'WavFile::m_channels' is not initialized in the constructor. [uninitMemberVar] sidplayfp-2.12.0/src/audio/wav/WavFile.h:119:10: style: Virtual function 'close' is called from destructor '~WavFile()' at line 104. Dynamic binding is not used. [virtualCallInConstructor] sidplayfp-2.12.0/src/audio/wav/WavFile.h:104:27: note: Calling close sidplayfp-2.12.0/src/audio/wav/WavFile.h:119:10: note: close is a virtual function sidplayfp-2.12.0/src/audio/wav/WavFile.h:103:5: style: Class 'WavFile' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] sidplayfp-2.12.0/src/audio/wav/WavFile.cpp:195:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] sidplayfp-2.12.0/src/audio/wav/WavFile.cpp:197:29: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] sidplayfp-2.12.0/src/audio/wav/WavFile.cpp:198:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] sidplayfp-2.12.0/src/audio/wav/WavFile.cpp:206:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] sidplayfp-2.12.0/src/audio/wav/WavFile.cpp:217:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] sidplayfp-2.12.0/src/audio/wav/WavFile.cpp:237:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] sidplayfp-2.12.0/src/audio/wav/WavFile.cpp:239:29: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] sidplayfp-2.12.0/src/audio/wav/WavFile.cpp:240:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] sidplayfp-2.12.0/src/audio/wav/WavFile.cpp:217:25: portability:inconclusive: Casting from float * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] sidplayfp-2.12.0/src/audio/wav/WavFile.cpp:142:20: style: The scope of the variable 'bufSize' can be reduced. [variableScope] diff: 2.17.0 sidplayfp-2.12.0/src/audio/au/auFile.cpp:250:25: style: C-style pointer casting [cstyleCast] head sidplayfp-2.12.0/src/audio/au/auFile.cpp:250:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 sidplayfp-2.12.0/src/audio/au/auFile.cpp:261:42: style: C-style pointer casting [cstyleCast] head sidplayfp-2.12.0/src/audio/au/auFile.cpp:261:42: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 sidplayfp-2.12.0/src/audio/au/auFile.cpp:263:25: style: C-style pointer casting [cstyleCast] head sidplayfp-2.12.0/src/audio/au/auFile.cpp:263:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 sidplayfp-2.12.0/src/audio/au/auFile.cpp:273:42: style: C-style pointer casting [cstyleCast] head sidplayfp-2.12.0/src/audio/au/auFile.cpp:273:42: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 sidplayfp-2.12.0/src/audio/au/auFile.cpp:275:25: style: C-style pointer casting [cstyleCast] head sidplayfp-2.12.0/src/audio/au/auFile.cpp:275:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 sidplayfp-2.12.0/src/audio/au/auFile.cpp:292:25: style: C-style pointer casting [cstyleCast] head sidplayfp-2.12.0/src/audio/au/auFile.cpp:292:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 sidplayfp-2.12.0/src/audio/wav/WavFile.cpp:195:25: style: C-style pointer casting [cstyleCast] head sidplayfp-2.12.0/src/audio/wav/WavFile.cpp:195:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 sidplayfp-2.12.0/src/audio/wav/WavFile.cpp:197:29: style: C-style pointer casting [cstyleCast] head sidplayfp-2.12.0/src/audio/wav/WavFile.cpp:197:29: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 sidplayfp-2.12.0/src/audio/wav/WavFile.cpp:198:25: style: C-style pointer casting [cstyleCast] head sidplayfp-2.12.0/src/audio/wav/WavFile.cpp:198:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 sidplayfp-2.12.0/src/audio/wav/WavFile.cpp:206:25: style: C-style pointer casting [cstyleCast] head sidplayfp-2.12.0/src/audio/wav/WavFile.cpp:206:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 sidplayfp-2.12.0/src/audio/wav/WavFile.cpp:217:25: style: C-style pointer casting [cstyleCast] head sidplayfp-2.12.0/src/audio/wav/WavFile.cpp:217:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 sidplayfp-2.12.0/src/audio/wav/WavFile.cpp:237:25: style: C-style pointer casting [cstyleCast] head sidplayfp-2.12.0/src/audio/wav/WavFile.cpp:237:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 sidplayfp-2.12.0/src/audio/wav/WavFile.cpp:239:29: style: C-style pointer casting [cstyleCast] head sidplayfp-2.12.0/src/audio/wav/WavFile.cpp:239:29: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 sidplayfp-2.12.0/src/audio/wav/WavFile.cpp:240:25: style: C-style pointer casting [cstyleCast] head sidplayfp-2.12.0/src/audio/wav/WavFile.cpp:240:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] head sidplayfp-2.12.0/src/codeConvert.cpp:29:26: performance:inconclusive: Technically the member function 'codeConvert::convert' can be static (but you may consider moving to unnamed namespace). [functionStatic] sidplayfp-2.12.0/src/codeConvert.h:51:17: note: Technically the member function 'codeConvert::convert' can be static (but you may consider moving to unnamed namespace). sidplayfp-2.12.0/src/codeConvert.cpp:29:26: note: Technically the member function 'codeConvert::convert' can be static (but you may consider moving to unnamed namespace). 2.17.0 sidplayfp-2.12.0/src/codeConvert.h:51:17: performance:inconclusive: Technically the member function 'codeConvert::convert' can be static (but you may consider moving to unnamed namespace). [functionStatic] sidplayfp-2.12.0/src/codeConvert.cpp:29:26: note: Technically the member function 'codeConvert::convert' can be static (but you may consider moving to unnamed namespace). sidplayfp-2.12.0/src/codeConvert.h:51:17: note: Technically the member function 'codeConvert::convert' can be static (but you may consider moving to unnamed namespace). head sidplayfp-2.12.0/src/ini/iniHandler.cpp:56:24: performance:inconclusive: Technically the member function 'iniHandler::parseSection' can be static (but you may consider moving to unnamed namespace). [functionStatic] sidplayfp-2.12.0/src/ini/iniHandler.h:48:16: note: Technically the member function 'iniHandler::parseSection' can be static (but you may consider moving to unnamed namespace). sidplayfp-2.12.0/src/ini/iniHandler.cpp:56:24: note: Technically the member function 'iniHandler::parseSection' can be static (but you may consider moving to unnamed namespace). head sidplayfp-2.12.0/src/ini/iniHandler.cpp:68:38: performance:inconclusive: Technically the member function 'iniHandler::parseKey' can be static (but you may consider moving to unnamed namespace). [functionStatic] sidplayfp-2.12.0/src/ini/iniHandler.h:50:18: note: Technically the member function 'iniHandler::parseKey' can be static (but you may consider moving to unnamed namespace). sidplayfp-2.12.0/src/ini/iniHandler.cpp:68:38: note: Technically the member function 'iniHandler::parseKey' can be static (but you may consider moving to unnamed namespace). 2.17.0 sidplayfp-2.12.0/src/ini/iniHandler.h:48:16: performance:inconclusive: Technically the member function 'iniHandler::parseSection' can be static (but you may consider moving to unnamed namespace). [functionStatic] sidplayfp-2.12.0/src/ini/iniHandler.cpp:56:24: note: Technically the member function 'iniHandler::parseSection' can be static (but you may consider moving to unnamed namespace). sidplayfp-2.12.0/src/ini/iniHandler.h:48:16: note: Technically the member function 'iniHandler::parseSection' can be static (but you may consider moving to unnamed namespace). 2.17.0 sidplayfp-2.12.0/src/ini/iniHandler.h:50:18: performance:inconclusive: Technically the member function 'iniHandler::parseKey' can be static (but you may consider moving to unnamed namespace). [functionStatic] sidplayfp-2.12.0/src/ini/iniHandler.cpp:68:38: note: Technically the member function 'iniHandler::parseKey' can be static (but you may consider moving to unnamed namespace). sidplayfp-2.12.0/src/ini/iniHandler.h:50:18: note: Technically the member function 'iniHandler::parseKey' can be static (but you may consider moving to unnamed namespace). head sidplayfp-2.12.0/src/sidcxx11.h:40:4: error: #error "This is not a C++11 compiler" [preprocessorErrorDirective] DONE