2025-11-24 04:31 ftp://ftp.de.debian.org/debian/pool/main/s/stymulator/stymulator_0.21a~dfsg.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 -j4 platform: Linux-6.12.57+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: cb76e52 (2025-11-22 14:47:37 +0100) count: 224 224 elapsed-time: 0.5 0.5 head-timing-info: old-timing-info: head results: STYMulator-0.21a/src/sound.cpp:55:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SND_PCM_ACCESS_RW_INTERLEAVED [valueFlowBailoutIncompleteVar] STYMulator-0.21a/src/sound.cpp:64:3: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] STYMulator-0.21a/src/sound.cpp:69:3: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] STYMulator-0.21a/src/sound.cpp:73:3: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] STYMulator-0.21a/src/sound.cpp:77:3: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] STYMulator-0.21a/src/sound.cpp:85:3: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] STYMulator-0.21a/src/stsoundlib/Ym2149Ex.h:77:8: style:inconclusive: Technically the member function 'CDcAdjuster::GetDcLevel' can be const. [functionConst] STYMulator-0.21a/src/stsoundlib/Ym2149Ex.h:90:3: style: Class 'CYm2149Ex' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] STYMulator-0.21a/src/stsoundlib/YmMusic.h:127:2: style: Class 'CYmMusic' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] STYMulator-0.21a/src/stsoundlib/YmUserInterface.cpp:46:21: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/YmUserInterface.cpp:52:21: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/YmUserInterface.cpp:58:21: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/YmUserInterface.cpp:64:21: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/YmUserInterface.cpp:70:21: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/YmUserInterface.cpp:76:21: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/YmUserInterface.cpp:82:21: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/YmUserInterface.cpp:88:21: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/YmUserInterface.cpp:94:21: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/YmUserInterface.cpp:100:21: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/YmUserInterface.cpp:106:21: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/YmUserInterface.cpp:112:21: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/YmUserInterface.cpp:120:21: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/YmUserInterface.cpp:129:21: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/YmUserInterface.cpp:44:29: style:inconclusive: Function 'ymMusicLoad' argument 1 names different: declaration 'pMusic' definition 'pMus'. [funcArgNamesDifferent] STYMulator-0.21a/src/stsoundlib/StSoundLibrary.h:57:38: note: Function 'ymMusicLoad' argument 1 names different: declaration 'pMusic' definition 'pMus'. STYMulator-0.21a/src/stsoundlib/YmUserInterface.cpp:44:29: note: Function 'ymMusicLoad' argument 1 names different: declaration 'pMusic' definition 'pMus'. STYMulator-0.21a/src/stsoundlib/YmUserInterface.cpp:50:35: style:inconclusive: Function 'ymMusicLoadMemory' argument 1 names different: declaration 'pMusic' definition 'pMus'. [funcArgNamesDifferent] STYMulator-0.21a/src/stsoundlib/StSoundLibrary.h:58:44: note: Function 'ymMusicLoadMemory' argument 1 names different: declaration 'pMusic' definition 'pMus'. STYMulator-0.21a/src/stsoundlib/YmUserInterface.cpp:50:35: note: Function 'ymMusicLoadMemory' argument 1 names different: declaration 'pMusic' definition 'pMus'. STYMulator-0.21a/src/stsoundlib/YmUserInterface.cpp:56:30: style:inconclusive: Function 'ymMusicDestroy' argument 1 names different: declaration 'pMusic' definition 'pMus'. [funcArgNamesDifferent] STYMulator-0.21a/src/stsoundlib/StSoundLibrary.h:54:38: note: Function 'ymMusicDestroy' argument 1 names different: declaration 'pMusic' definition 'pMus'. STYMulator-0.21a/src/stsoundlib/YmUserInterface.cpp:56:30: note: Function 'ymMusicDestroy' argument 1 names different: declaration 'pMusic' definition 'pMus'. STYMulator-0.21a/src/stsoundlib/YmUserInterface.cpp:62:32: style:inconclusive: Function 'ymMusicCompute' argument 1 names different: declaration 'pMusic' definition '_pMus'. [funcArgNamesDifferent] STYMulator-0.21a/src/stsoundlib/StSoundLibrary.h:60:41: note: Function 'ymMusicCompute' argument 1 names different: declaration 'pMusic' definition '_pMus'. STYMulator-0.21a/src/stsoundlib/YmUserInterface.cpp:62:32: note: Function 'ymMusicCompute' argument 1 names different: declaration 'pMusic' definition '_pMus'. STYMulator-0.21a/src/stsoundlib/YmUserInterface.cpp:68:34: style:inconclusive: Function 'ymMusicSetLoopMode' argument 1 names different: declaration 'pMusic' definition '_pMus'. [funcArgNamesDifferent] STYMulator-0.21a/src/stsoundlib/StSoundLibrary.h:62:43: note: Function 'ymMusicSetLoopMode' argument 1 names different: declaration 'pMusic' definition '_pMus'. STYMulator-0.21a/src/stsoundlib/YmUserInterface.cpp:68:34: note: Function 'ymMusicSetLoopMode' argument 1 names different: declaration 'pMusic' definition '_pMus'. STYMulator-0.21a/src/stsoundlib/YmUserInterface.cpp:74:42: style:inconclusive: Function 'ymMusicGetLastError' argument 1 names different: declaration 'pMusic' definition '_pMus'. [funcArgNamesDifferent] STYMulator-0.21a/src/stsoundlib/StSoundLibrary.h:63:50: note: Function 'ymMusicGetLastError' argument 1 names different: declaration 'pMusic' definition '_pMus'. STYMulator-0.21a/src/stsoundlib/YmUserInterface.cpp:74:42: note: Function 'ymMusicGetLastError' argument 1 names different: declaration 'pMusic' definition '_pMus'. STYMulator-0.21a/src/stsoundlib/YmUserInterface.cpp:80:34: style:inconclusive: Function 'ymMusicGetRegister' argument 1 names different: declaration 'pMusic' definition '_pMus'. [funcArgNamesDifferent] STYMulator-0.21a/src/stsoundlib/StSoundLibrary.h:64:43: note: Function 'ymMusicGetRegister' argument 1 names different: declaration 'pMusic' definition '_pMus'. STYMulator-0.21a/src/stsoundlib/YmUserInterface.cpp:80:34: note: Function 'ymMusicGetRegister' argument 1 names different: declaration 'pMusic' definition '_pMus'. STYMulator-0.21a/src/stsoundlib/YmUserInterface.cpp:86:30: style:inconclusive: Function 'ymMusicGetInfo' argument 1 names different: declaration 'pMusic' definition '_pMus'. [funcArgNamesDifferent] STYMulator-0.21a/src/stsoundlib/StSoundLibrary.h:65:39: note: Function 'ymMusicGetInfo' argument 1 names different: declaration 'pMusic' definition '_pMus'. STYMulator-0.21a/src/stsoundlib/YmUserInterface.cpp:86:30: note: Function 'ymMusicGetInfo' argument 1 names different: declaration 'pMusic' definition '_pMus'. STYMulator-0.21a/src/stsoundlib/YmUserInterface.cpp:92:27: style:inconclusive: Function 'ymMusicPlay' argument 1 names different: declaration 'pMusic' definition '_pMus'. [funcArgNamesDifferent] STYMulator-0.21a/src/stsoundlib/StSoundLibrary.h:66:36: note: Function 'ymMusicPlay' argument 1 names different: declaration 'pMusic' definition '_pMus'. STYMulator-0.21a/src/stsoundlib/YmUserInterface.cpp:92:27: note: Function 'ymMusicPlay' argument 1 names different: declaration 'pMusic' definition '_pMus'. STYMulator-0.21a/src/stsoundlib/YmUserInterface.cpp:98:28: style:inconclusive: Function 'ymMusicPause' argument 1 names different: declaration 'pMusic' definition '_pMus'. [funcArgNamesDifferent] STYMulator-0.21a/src/stsoundlib/StSoundLibrary.h:67:37: note: Function 'ymMusicPause' argument 1 names different: declaration 'pMusic' definition '_pMus'. STYMulator-0.21a/src/stsoundlib/YmUserInterface.cpp:98:28: note: Function 'ymMusicPause' argument 1 names different: declaration 'pMusic' definition '_pMus'. STYMulator-0.21a/src/stsoundlib/YmUserInterface.cpp:104:27: style:inconclusive: Function 'ymMusicStop' argument 1 names different: declaration 'pMusic' definition '_pMus'. [funcArgNamesDifferent] STYMulator-0.21a/src/stsoundlib/StSoundLibrary.h:68:36: note: Function 'ymMusicStop' argument 1 names different: declaration 'pMusic' definition '_pMus'. STYMulator-0.21a/src/stsoundlib/YmUserInterface.cpp:104:27: note: Function 'ymMusicStop' argument 1 names different: declaration 'pMusic' definition '_pMus'. STYMulator-0.21a/src/stsoundlib/YmUserInterface.cpp:110:36: style:inconclusive: Function 'ymMusicIsSeekable' argument 1 names different: declaration 'pMusic' definition '_pMus'. [funcArgNamesDifferent] STYMulator-0.21a/src/stsoundlib/StSoundLibrary.h:70:44: note: Function 'ymMusicIsSeekable' argument 1 names different: declaration 'pMusic' definition '_pMus'. STYMulator-0.21a/src/stsoundlib/YmUserInterface.cpp:110:36: note: Function 'ymMusicIsSeekable' argument 1 names different: declaration 'pMusic' definition '_pMus'. STYMulator-0.21a/src/stsoundlib/YmUserInterface.cpp:118:30: style:inconclusive: Function 'ymMusicGetPos' argument 1 names different: declaration 'pMusic' definition '_pMus'. [funcArgNamesDifferent] STYMulator-0.21a/src/stsoundlib/StSoundLibrary.h:71:39: note: Function 'ymMusicGetPos' argument 1 names different: declaration 'pMusic' definition '_pMus'. STYMulator-0.21a/src/stsoundlib/YmUserInterface.cpp:118:30: note: Function 'ymMusicGetPos' argument 1 names different: declaration 'pMusic' definition '_pMus'. STYMulator-0.21a/src/stsoundlib/YmUserInterface.cpp:127:28: style:inconclusive: Function 'ymMusicSeek' argument 1 names different: declaration 'pMusic' definition '_pMus'. [funcArgNamesDifferent] STYMulator-0.21a/src/stsoundlib/StSoundLibrary.h:72:36: note: Function 'ymMusicSeek' argument 1 names different: declaration 'pMusic' definition '_pMus'. STYMulator-0.21a/src/stsoundlib/YmUserInterface.cpp:127:28: note: Function 'ymMusicSeek' argument 1 names different: declaration 'pMusic' definition '_pMus'. STYMulator-0.21a/src/stsoundlib/Ym2149Ex.cpp:107:12: warning: Member variable 'CYm2149Ex::cyclePerSample' is not initialized in the constructor. [uninitMemberVar] STYMulator-0.21a/src/stsoundlib/Ym2149Ex.cpp:107:12: warning: Member variable 'CYm2149Ex::bWrite13' is not initialized in the constructor. [uninitMemberVar] STYMulator-0.21a/src/stsoundlib/Ym2149Ex.cpp:107:12: warning: Member variable 'CYm2149Ex::envData' is not initialized in the constructor. [uninitMemberVar] STYMulator-0.21a/src/stsoundlib/Ym2149Ex.cpp:107:12: warning: Member variable 'CYm2149Ex::globalVolume' is not initialized in the constructor. [uninitMemberVar] STYMulator-0.21a/src/stsoundlib/Ym2149Ex.cpp:107:12: warning: Member variable 'CYm2149Ex::syncBuzzerShape' is not initialized in the constructor. [uninitMemberVar] STYMulator-0.21a/src/stsoundlib/Ym2149Ex.cpp:382:19: style:inconclusive: Technically the member function 'CYm2149Ex::readRegister' can be const. [functionConst] STYMulator-0.21a/src/stsoundlib/Ym2149Ex.h:98:9: note: Technically the member function 'CYm2149Ex::readRegister' can be const. STYMulator-0.21a/src/stsoundlib/Ym2149Ex.cpp:382:19: note: Technically the member function 'CYm2149Ex::readRegister' can be const. STYMulator-0.21a/src/stsoundlib/Ym2149Ex.cpp:537:17: performance:inconclusive: Technically the member function 'CYm2149Ex::sidSinStart' can be static (but you may consider moving to unnamed namespace). [functionStatic] STYMulator-0.21a/src/stsoundlib/Ym2149Ex.h:102:8: note: Technically the member function 'CYm2149Ex::sidSinStart' can be static (but you may consider moving to unnamed namespace). STYMulator-0.21a/src/stsoundlib/Ym2149Ex.cpp:537:17: note: Technically the member function 'CYm2149Ex::sidSinStart' can be static (but you may consider moving to unnamed namespace). STYMulator-0.21a/src/stsoundlib/Ym2149Ex.cpp:159:18: style:inconclusive: Technically the member function 'CYm2149Ex::toneStepCompute' can be const. [functionConst] STYMulator-0.21a/src/stsoundlib/Ym2149Ex.h:115:9: note: Technically the member function 'CYm2149Ex::toneStepCompute' can be const. STYMulator-0.21a/src/stsoundlib/Ym2149Ex.cpp:159:18: note: Technically the member function 'CYm2149Ex::toneStepCompute' can be const. STYMulator-0.21a/src/stsoundlib/Ym2149Ex.cpp:182:18: style:inconclusive: Technically the member function 'CYm2149Ex::noiseStepCompute' can be const. [functionConst] STYMulator-0.21a/src/stsoundlib/Ym2149Ex.h:116:9: note: Technically the member function 'CYm2149Ex::noiseStepCompute' can be const. STYMulator-0.21a/src/stsoundlib/Ym2149Ex.cpp:182:18: note: Technically the member function 'CYm2149Ex::noiseStepCompute' can be const. STYMulator-0.21a/src/stsoundlib/Ym2149Ex.cpp:210:18: style:inconclusive: Technically the member function 'CYm2149Ex::envStepCompute' can be const. [functionConst] STYMulator-0.21a/src/stsoundlib/Ym2149Ex.h:117:9: note: Technically the member function 'CYm2149Ex::envStepCompute' can be const. STYMulator-0.21a/src/stsoundlib/Ym2149Ex.cpp:210:18: note: Technically the member function 'CYm2149Ex::envStepCompute' can be const. STYMulator-0.21a/src/stsoundlib/Ym2149Ex.cpp:109:7: style: The scope of the variable 'i' can be reduced. [variableScope] STYMulator-0.21a/src/stsoundlib/Ym2149Ex.cpp:388:47: style:inconclusive: Function 'writeRegister' argument 2 names different: declaration 'value' definition 'data'. [funcArgNamesDifferent] STYMulator-0.21a/src/stsoundlib/Ym2149Ex.h:97:38: note: Function 'writeRegister' argument 2 names different: declaration 'value' definition 'data'. STYMulator-0.21a/src/stsoundlib/Ym2149Ex.cpp:388:47: note: Function 'writeRegister' argument 2 names different: declaration 'value' definition 'data'. STYMulator-0.21a/src/stsoundlib/Ym2149Ex.cpp:511:45: style:inconclusive: Function 'drumStart' argument 2 names different: declaration 'drumBuffer' definition 'pDrumBuffer'. [funcArgNamesDifferent] STYMulator-0.21a/src/stsoundlib/Ym2149Ex.h:99:36: note: Function 'drumStart' argument 2 names different: declaration 'drumBuffer' definition 'pDrumBuffer'. STYMulator-0.21a/src/stsoundlib/Ym2149Ex.cpp:511:45: note: Function 'drumStart' argument 2 names different: declaration 'drumBuffer' definition 'pDrumBuffer'. STYMulator-0.21a/src/stsoundlib/Ym2149Ex.cpp:525:44: style:inconclusive: Function 'sidStart' argument 2 names different: declaration 'freq' definition 'timerFreq'. [funcArgNamesDifferent] STYMulator-0.21a/src/stsoundlib/Ym2149Ex.h:101:35: note: Function 'sidStart' argument 2 names different: declaration 'freq' definition 'timerFreq'. STYMulator-0.21a/src/stsoundlib/Ym2149Ex.cpp:525:44: note: Function 'sidStart' argument 2 names different: declaration 'freq' definition 'timerFreq'. STYMulator-0.21a/src/stsoundlib/Ym2149Ex.cpp:537:63: style:inconclusive: Function 'sidSinStart' argument 3 names different: declaration 'sinPattern' definition 'vol'. [funcArgNamesDifferent] STYMulator-0.21a/src/stsoundlib/Ym2149Ex.h:102:54: note: Function 'sidSinStart' argument 3 names different: declaration 'sinPattern' definition 'vol'. STYMulator-0.21a/src/stsoundlib/Ym2149Ex.cpp:537:63: note: Function 'sidSinStart' argument 3 names different: declaration 'sinPattern' definition 'vol'. STYMulator-0.21a/src/stsoundlib/Ym2149Ex.cpp:547:39: style:inconclusive: Function 'syncBuzzerStart' argument 1 names different: declaration 'freq' definition 'timerFreq'. [funcArgNamesDifferent] STYMulator-0.21a/src/stsoundlib/Ym2149Ex.h:104:30: note: Function 'syncBuzzerStart' argument 1 names different: declaration 'freq' definition 'timerFreq'. STYMulator-0.21a/src/stsoundlib/Ym2149Ex.cpp:547:39: note: Function 'syncBuzzerStart' argument 1 names different: declaration 'freq' definition 'timerFreq'. STYMulator-0.21a/src/stsoundlib/Ym2149Ex.cpp:547:55: style:inconclusive: Function 'syncBuzzerStart' argument 2 names different: declaration 'envShape' definition '_envShape'. [funcArgNamesDifferent] STYMulator-0.21a/src/stsoundlib/Ym2149Ex.h:104:41: note: Function 'syncBuzzerStart' argument 2 names different: declaration 'envShape' definition '_envShape'. STYMulator-0.21a/src/stsoundlib/Ym2149Ex.cpp:547:55: note: Function 'syncBuzzerStart' argument 2 names different: declaration 'envShape' definition '_envShape'. STYMulator-0.21a/src/stsoundlib/Ym2149Ex.cpp:270:27: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] STYMulator-0.21a/src/stsoundlib/Ym2149Ex.cpp:338:23: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] STYMulator-0.21a/src/stsoundlib/Ym2149Ex.cpp:340:23: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] STYMulator-0.21a/src/stsoundlib/Ym2149Ex.cpp:342:23: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] STYMulator-0.21a/src/stsoundlib/Ym2149Ex.cpp:362:25: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] STYMulator-0.21a/src/stsoundlib/Ym2149Ex.cpp:396:25: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] STYMulator-0.21a/src/stsoundlib/Ym2149Ex.cpp:402:25: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] STYMulator-0.21a/src/stsoundlib/Ym2149Ex.cpp:408:25: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] STYMulator-0.21a/src/stsoundlib/Ym2149Ex.cpp:414:25: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] STYMulator-0.21a/src/stsoundlib/Ym2149Ex.cpp:420:25: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] STYMulator-0.21a/src/stsoundlib/Ym2149Ex.cpp:426:25: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] STYMulator-0.21a/src/stsoundlib/Ym2149Ex.cpp:528:30: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] STYMulator-0.21a/src/stsoundlib/Ym2149Ex.cpp:550:30: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] STYMulator-0.21a/src/stsoundlib/lzh/lzh.h:78:1: style: The class 'CLzhDepacker' does not declare a constructor although it has private member variables which likely require initialization. [noConstructor] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:320:7: warning: If memory allocation fails, then there is a possible null pointer dereference: pDrumTab [nullPointerOutOfMemory] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:317:34: note: Assuming allocation function fails STYMulator-0.21a/src/stsoundlib/Ymload.cpp:317:15: note: Assignment 'pDrumTab=(struct digiDrum_t*)malloc(nbDrum*sizeof(struct digiDrum_t))', assigned value is 0 STYMulator-0.21a/src/stsoundlib/Ymload.cpp:320:7: note: Null pointer dereference STYMulator-0.21a/src/stsoundlib/Ymload.cpp:321:11: warning: If memory allocation fails, then there is a possible null pointer dereference: pDrumTab [nullPointerOutOfMemory] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:317:34: note: Assuming allocation function fails STYMulator-0.21a/src/stsoundlib/Ymload.cpp:317:15: note: Assignment 'pDrumTab=(struct digiDrum_t*)malloc(nbDrum*sizeof(struct digiDrum_t))', assigned value is 0 STYMulator-0.21a/src/stsoundlib/Ymload.cpp:321:11: note: Null pointer dereference STYMulator-0.21a/src/stsoundlib/Ymload.cpp:379:6: warning: If memory allocation fails, then there is a possible null pointer dereference: pMixBlock [nullPointerOutOfMemory] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:376:36: note: Assuming allocation function fails STYMulator-0.21a/src/stsoundlib/Ymload.cpp:376:17: note: Assignment 'pMixBlock=(struct mixBlock_t*)malloc(nbMixBlock*sizeof(struct mixBlock_t))', assigned value is 0 STYMulator-0.21a/src/stsoundlib/Ymload.cpp:379:6: note: Null pointer dereference STYMulator-0.21a/src/stsoundlib/Ymload.cpp:380:6: warning: If memory allocation fails, then there is a possible null pointer dereference: pMixBlock [nullPointerOutOfMemory] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:376:36: note: Assuming allocation function fails STYMulator-0.21a/src/stsoundlib/Ymload.cpp:376:17: note: Assignment 'pMixBlock=(struct mixBlock_t*)malloc(nbMixBlock*sizeof(struct mixBlock_t))', assigned value is 0 STYMulator-0.21a/src/stsoundlib/Ymload.cpp:380:6: note: Null pointer dereference STYMulator-0.21a/src/stsoundlib/Ymload.cpp:381:6: warning: If memory allocation fails, then there is a possible null pointer dereference: pMixBlock [nullPointerOutOfMemory] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:376:36: note: Assuming allocation function fails STYMulator-0.21a/src/stsoundlib/Ymload.cpp:376:17: note: Assignment 'pMixBlock=(struct mixBlock_t*)malloc(nbMixBlock*sizeof(struct mixBlock_t))', assigned value is 0 STYMulator-0.21a/src/stsoundlib/Ymload.cpp:381:6: note: Null pointer dereference STYMulator-0.21a/src/stsoundlib/Ymload.cpp:382:6: warning: If memory allocation fails, then there is a possible null pointer dereference: pMixBlock [nullPointerOutOfMemory] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:376:36: note: Assuming allocation function fails STYMulator-0.21a/src/stsoundlib/Ymload.cpp:376:17: note: Assignment 'pMixBlock=(struct mixBlock_t*)malloc(nbMixBlock*sizeof(struct mixBlock_t))', assigned value is 0 STYMulator-0.21a/src/stsoundlib/Ymload.cpp:382:6: note: Null pointer dereference STYMulator-0.21a/src/stsoundlib/Ymload.cpp:389:12: warning: If memory allocation fails, then there is a possible null pointer dereference: pBigSampleBuffer [nullPointerOutOfMemory] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:388:46: note: Assuming allocation function fails STYMulator-0.21a/src/stsoundlib/Ymload.cpp:388:24: note: Assignment 'pBigSampleBuffer=(unsigned char*)malloc(sampleSize)', assigned value is 0 STYMulator-0.21a/src/stsoundlib/Ymload.cpp:389:12: note: Null pointer dereference STYMulator-0.21a/src/stsoundlib/Ymload.cpp:442:7: warning: If memory allocation fails, then there is a possible null pointer dereference: pDrumTab [nullPointerOutOfMemory] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:439:34: note: Assuming allocation function fails STYMulator-0.21a/src/stsoundlib/Ymload.cpp:439:15: note: Assignment 'pDrumTab=(struct digiDrum_t*)malloc(nbDrum*sizeof(struct digiDrum_t))', assigned value is 0 STYMulator-0.21a/src/stsoundlib/Ymload.cpp:442:7: note: Null pointer dereference STYMulator-0.21a/src/stsoundlib/Ymload.cpp:443:7: warning: If memory allocation fails, then there is a possible null pointer dereference: pDrumTab [nullPointerOutOfMemory] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:439:34: note: Assuming allocation function fails STYMulator-0.21a/src/stsoundlib/Ymload.cpp:439:15: note: Assignment 'pDrumTab=(struct digiDrum_t*)malloc(nbDrum*sizeof(struct digiDrum_t))', assigned value is 0 STYMulator-0.21a/src/stsoundlib/Ymload.cpp:443:7: note: Null pointer dereference STYMulator-0.21a/src/stsoundlib/Ymload.cpp:443:28: warning: If memory allocation fails, then there is a possible null pointer dereference: pDrumTab [nullPointerOutOfMemory] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:439:34: note: Assuming allocation function fails STYMulator-0.21a/src/stsoundlib/Ymload.cpp:439:15: note: Assignment 'pDrumTab=(struct digiDrum_t*)malloc(nbDrum*sizeof(struct digiDrum_t))', assigned value is 0 STYMulator-0.21a/src/stsoundlib/Ymload.cpp:443:28: note: Null pointer dereference STYMulator-0.21a/src/stsoundlib/Ymload.cpp:449:11: warning: If memory allocation fails, then there is a possible null pointer dereference: pDrumTab [nullPointerOutOfMemory] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:439:34: note: Assuming allocation function fails STYMulator-0.21a/src/stsoundlib/Ymload.cpp:439:15: note: Assignment 'pDrumTab=(struct digiDrum_t*)malloc(nbDrum*sizeof(struct digiDrum_t))', assigned value is 0 STYMulator-0.21a/src/stsoundlib/Ymload.cpp:449:11: note: Null pointer dereference STYMulator-0.21a/src/stsoundlib/Ymload.cpp:449:30: warning: If memory allocation fails, then there is a possible null pointer dereference: pDrumTab [nullPointerOutOfMemory] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:439:34: note: Assuming allocation function fails STYMulator-0.21a/src/stsoundlib/Ymload.cpp:439:15: note: Assignment 'pDrumTab=(struct digiDrum_t*)malloc(nbDrum*sizeof(struct digiDrum_t))', assigned value is 0 STYMulator-0.21a/src/stsoundlib/Ymload.cpp:449:30: note: Null pointer dereference STYMulator-0.21a/src/stsoundlib/Ymload.cpp:454:11: warning: If memory allocation fails, then there is a possible null pointer dereference: pDrumTab [nullPointerOutOfMemory] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:439:34: note: Assuming allocation function fails STYMulator-0.21a/src/stsoundlib/Ymload.cpp:439:15: note: Assignment 'pDrumTab=(struct digiDrum_t*)malloc(nbDrum*sizeof(struct digiDrum_t))', assigned value is 0 STYMulator-0.21a/src/stsoundlib/Ymload.cpp:454:11: note: Null pointer dereference STYMulator-0.21a/src/stsoundlib/Ymload.cpp:56:15: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:137:10: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:197:14: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:239:24: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:277:11: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:301:17: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:317:15: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:323:28: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:343:30: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:344:32: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:345:33: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:364:17: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:376:17: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:384:30: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:385:32: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:386:33: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:388:24: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:421:17: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:434:30: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:435:32: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:436:33: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:439:15: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:456:28: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:552:16: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:611:16: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:660:10: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:661:10: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:662:10: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:663:10: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:664:10: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:665:10: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:670:12: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:673:11: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:675:10: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:676:10: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:118:13: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:136:33: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:150:46: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:189:8: style: The scope of the variable 'nextPlane' can be reduced. [variableScope] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:190:8: style: The scope of the variable 'pW' can be reduced. [variableScope] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:191:8: style: The scope of the variable 'j' can be reduced. [variableScope] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:191:10: style: The scope of the variable 'k' can be reduced. [variableScope] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:530:35: style:inconclusive: Function 'load' argument 1 names different: declaration 'pName' definition 'fileName'. [funcArgNamesDifferent] STYMulator-0.21a/src/stsoundlib/YmMusic.h:130:26: note: Function 'load' argument 1 names different: declaration 'pName' definition 'fileName'. STYMulator-0.21a/src/stsoundlib/Ymload.cpp:530:35: note: Function 'load' argument 1 names different: declaration 'pName' definition 'fileName'. STYMulator-0.21a/src/stsoundlib/Ymload.cpp:54:21: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:92:32: style: Parameter 'pLittle' can be declared as pointer to const [constParameterPointer] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:102:29: style: Parameter 'pBig' can be declared as pointer to const [constParameterPointer] STYMulator-0.21a/src/stsoundlib/Ymload.cpp:597:35: style: Parameter 'pBlock' can be declared as pointer to const [constParameterPointer] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:43:11: warning: Member variable 'CYmMusic::bMusicOver' is not initialized in the constructor. [uninitMemberVar] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:43:11: warning: Member variable 'CYmMusic::pLastError' is not initialized in the constructor. [uninitMemberVar] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:43:11: warning: Member variable 'CYmMusic::songType' is not initialized in the constructor. [uninitMemberVar] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:43:11: warning: Member variable 'CYmMusic::nbFrame' is not initialized in the constructor. [uninitMemberVar] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:43:11: warning: Member variable 'CYmMusic::loopFrame' is not initialized in the constructor. [uninitMemberVar] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:43:11: warning: Member variable 'CYmMusic::currentFrame' is not initialized in the constructor. [uninitMemberVar] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:43:11: warning: Member variable 'CYmMusic::musicTime' is not initialized in the constructor. [uninitMemberVar] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:43:11: warning: Member variable 'CYmMusic::pDataStream' is not initialized in the constructor. [uninitMemberVar] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:43:11: warning: Member variable 'CYmMusic::fileSize' is not initialized in the constructor. [uninitMemberVar] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:43:11: warning: Member variable 'CYmMusic::playerRate' is not initialized in the constructor. [uninitMemberVar] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:43:11: warning: Member variable 'CYmMusic::attrib' is not initialized in the constructor. [uninitMemberVar] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:43:11: warning: Member variable 'CYmMusic::bMusicOk' is not initialized in the constructor. [uninitMemberVar] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:43:11: warning: Member variable 'CYmMusic::bPause' is not initialized in the constructor. [uninitMemberVar] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:43:11: warning: Member variable 'CYmMusic::streamInc' is not initialized in the constructor. [uninitMemberVar] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:43:11: warning: Member variable 'CYmMusic::nbRepeat' is not initialized in the constructor. [uninitMemberVar] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:43:11: warning: Member variable 'CYmMusic::nbMixBlock' is not initialized in the constructor. [uninitMemberVar] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:43:11: warning: Member variable 'CYmMusic::mixPos' is not initialized in the constructor. [uninitMemberVar] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:43:11: warning: Member variable 'CYmMusic::pCurrentMixSample' is not initialized in the constructor. [uninitMemberVar] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:43:11: warning: Member variable 'CYmMusic::currentSampleLength' is not initialized in the constructor. [uninitMemberVar] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:43:11: warning: Member variable 'CYmMusic::currentPente' is not initialized in the constructor. [uninitMemberVar] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:43:11: warning: Member variable 'CYmMusic::currentPos' is not initialized in the constructor. [uninitMemberVar] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:43:11: warning: Member variable 'CYmMusic::nbVoice' is not initialized in the constructor. [uninitMemberVar] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:43:11: warning: Member variable 'CYmMusic::ymTrackerVoice' is not initialized in the constructor. [uninitMemberVar] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:43:11: warning: Member variable 'CYmMusic::ymTrackerNbSampleBefore' is not initialized in the constructor. [uninitMemberVar] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:43:11: warning: Member variable 'CYmMusic::ymTrackerVolumeTable' is not initialized in the constructor. [uninitMemberVar] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:43:11: warning: Member variable 'CYmMusic::ymTrackerFreqShift' is not initialized in the constructor. [uninitMemberVar] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:99:17: style:inconclusive: Technically the member function 'CYmMusic::getMusicTime' can be const. [functionConst] STYMulator-0.21a/src/stsoundlib/YmMusic.h:137:8: note: Technically the member function 'CYmMusic::getMusicTime' can be const. STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:99:17: note: Technically the member function 'CYmMusic::getMusicTime' can be const. STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:308:16: performance:inconclusive: Technically the member function 'CYmMusic::setVolume' can be static (but you may consider moving to unnamed namespace). [functionStatic] STYMulator-0.21a/src/stsoundlib/YmMusic.h:142:7: note: Technically the member function 'CYmMusic::setVolume' can be static (but you may consider moving to unnamed namespace). STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:308:16: note: Technically the member function 'CYmMusic::setVolume' can be static (but you may consider moving to unnamed namespace). STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:160:18: style:inconclusive: Technically the member function 'CYmMusic::getAttrib' can be const. [functionConst] STYMulator-0.21a/src/stsoundlib/YmMusic.h:143:7: note: Technically the member function 'CYmMusic::getAttrib' can be const. STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:160:18: note: Technically the member function 'CYmMusic::getAttrib' can be const. STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:131:16: style:inconclusive: Technically the member function 'CYmMusic::getMusicInfo' can be const. [functionConst] STYMulator-0.21a/src/stsoundlib/YmMusic.h:144:7: note: Technically the member function 'CYmMusic::getMusicInfo' can be const. STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:131:16: note: Technically the member function 'CYmMusic::getMusicInfo' can be const. STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:558:7: warning: If memory allocation fails, then there is a possible null pointer dereference: a1 [nullPointerOutOfMemory] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:548:39: note: Assuming allocation function fails STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:548:17: note: Assignment 'pNewBuffer=(unsigned char*)malloc(size)', assigned value is 0 STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:551:9: note: Assignment 'a2=pNewBuffer', assigned value is 0 STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:555:10: note: Assignment 'a1=a2', assigned value is 0 STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:558:7: note: Null pointer dereference STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:565:23: warning: If memory allocation fails, then there is a possible null pointer dereference: pNewBuffer [nullPointerOutOfMemory] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:548:39: note: Assuming allocation function fails STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:548:17: note: Assignment 'pNewBuffer=(unsigned char*)malloc(size)', assigned value is 0 STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:565:23: note: Null pointer dereference STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:562:7: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:548:39: note: Assuming allocation function fails STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:548:17: note: Assignment 'pNewBuffer=(unsigned char*)malloc(size)', assigned value is 0 STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:551:9: note: Assignment 'a2=pNewBuffer', assigned value is 0 STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:562:7: note: Null pointer addition STYMulator-0.21a/src/ui.h:36:31: error: Code 'ymMusicInfo_t& info' is invalid C code. [syntaxError] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:182:10: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:548:17: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:610:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:187:7: style: The scope of the variable 'sampleToCompute' can be reduced. [variableScope] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:188:7: style: The scope of the variable 'vblNbSample' can be reduced. [variableScope] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:245:7: style: The scope of the variable 'voice' can be reduced. [variableScope] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:246:7: style: The scope of the variable 'ndrum' can be reduced. [variableScope] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:316:8: style: The scope of the variable 'prediv' can be reduced. [variableScope] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:317:8: style: The scope of the variable 'voice' can be reduced. [variableScope] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:318:8: style: The scope of the variable 'ndrum' can be reduced. [variableScope] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:361:10: style: The scope of the variable 'sampleFrq' can be reduced. [variableScope] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:386:10: style: The scope of the variable 'code' can be reduced. [variableScope] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:424:13: style: The scope of the variable 'sampleFrq' can be reduced. [variableScope] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:538:16: style: The scope of the variable 'a0' can be reduced. [variableScope] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:538:20: style: The scope of the variable 'a1' can be reduced. [variableScope] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:540:7: style: The scope of the variable 'step' can be reduced. [variableScope] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:541:7: style: The scope of the variable 'n1' can be reduced. [variableScope] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:541:10: style: The scope of the variable 'n2' can be reduced. [variableScope] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:614:10: style: The scope of the variable 'n' can be reduced. [variableScope] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:707:7: style: The scope of the variable '_nbs' can be reduced. [variableScope] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:63:38: style:inconclusive: Function 'setTimeControl' argument 1 names different: declaration 'bFlag' definition 'bTime'. [funcArgNamesDifferent] STYMulator-0.21a/src/stsoundlib/YmMusic.h:167:29: note: Function 'setTimeControl' argument 1 names different: declaration 'bFlag' definition 'bTime'. STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:63:38: note: Function 'setTimeControl' argument 1 names different: declaration 'bFlag' definition 'bTime'. STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:77:35: style:inconclusive: Function 'setLoopMode' argument 1 names different: declaration 'bLoop' definition 'bLoopMode'. [funcArgNamesDifferent] STYMulator-0.21a/src/stsoundlib/YmMusic.h:145:26: note: Function 'setLoopMode' argument 1 names different: declaration 'bLoop' definition 'bLoopMode'. STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:77:35: note: Function 'setLoopMode' argument 1 names different: declaration 'bLoop' definition 'bLoopMode'. STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:185:35: style:inconclusive: Function 'update' argument 1 names different: declaration 'pBuffer' definition 'sampleBuffer'. [funcArgNamesDifferent] STYMulator-0.21a/src/stsoundlib/YmMusic.h:135:26: note: Function 'update' argument 1 names different: declaration 'pBuffer' definition 'sampleBuffer'. STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:185:35: note: Function 'update' argument 1 names different: declaration 'pBuffer' definition 'sampleBuffer'. STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:680:11: style: Local variable 'vb' shadows outer variable [shadowVariable] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:678:10: note: Shadowed declaration STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:680:11: note: Shadow variable STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:243:45: style: Parameter 'pReg' can be declared as pointer to const [constParameterPointer] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:538:16: style: Variable 'a0' can be declared as pointer to const [constVariablePointer] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:652:11: style: Variable 'pVolumeTab' can be declared as pointer to const [constVariablePointer] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:653:7: style: Variable 'pSample' can be declared as pointer to const [constVariablePointer] STYMulator-0.21a/src/stsoundlib/lzh/lzhlib.cpp:409:11: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/lzh/lzhlib.cpp:411:11: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/stsoundlib/lzh/lzhlib.cpp:120:11: style: The scope of the variable 'len' can be reduced. [variableScope] STYMulator-0.21a/src/stsoundlib/lzh/lzhlib.cpp:197:12: style: The scope of the variable 'mask' can be reduced. [variableScope] STYMulator-0.21a/src/stsoundlib/lzh/lzhlib.cpp:370:13: style: The scope of the variable 'c' can be reduced. [variableScope] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:265:14: style: Variable 'tmpFreq' is assigned a value that is never used. [unreadVariable] STYMulator-0.21a/src/stsoundlib/lzh/lzhlib.cpp:55:34: style:inconclusive: Function 'DataOut' argument 1 names different: declaration 'pOut' definition 'pBuffer'. [funcArgNamesDifferent] STYMulator-0.21a/src/stsoundlib/lzh/lzh.h:95:22: note: Function 'DataOut' argument 1 names different: declaration 'pOut' definition 'pBuffer'. STYMulator-0.21a/src/stsoundlib/lzh/lzhlib.cpp:55:34: note: Function 'DataOut' argument 1 names different: declaration 'pOut' definition 'pBuffer'. STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:294:14: style: Variable 'tmpFreq' is assigned a value that is never used. [unreadVariable] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:406:14: style: Variable 'tmpFreq' is assigned a value that is never used. [unreadVariable] STYMulator-0.21a/src/stsoundlib/lzh/lzhlib.cpp:55:34: style: Parameter 'pBuffer' can be declared as pointer to const [constParameterPointer] STYMulator-0.21a/src/stsoundlib/lzh/lzhlib.cpp:115:49: style: Parameter 'bitlen' can be declared as pointer to const [constParameterPointer] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:615:15: style: Variable 'freq' is assigned a value that is never used. [unreadVariable] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:615:10: style: Variable 'freq' is assigned a value that is never used. [unreadVariable] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:680:14: style: Variable 'vb' is assigned a value that is never used. [unreadVariable] STYMulator-0.21a/src/stsoundlib/YmMusic.cpp:680:11: style: Variable 'vb' is assigned a value that is never used. [unreadVariable] STYMulator-0.21a/src/ym2wav.cpp:111:3: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'yms32 {aka signed int}'. [invalidPrintfArgType_sint] STYMulator-0.21a/src/ym2wav.cpp:160:3: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'ymu32 {aka unsigned int}'. [invalidPrintfArgType_sint] STYMulator-0.21a/src/ym2wav.cpp:136:11: style: C-style pointer casting [cstyleCast] STYMulator-0.21a/src/ym2wav.cpp:74:8: style: Variable 'platform' can be declared as pointer to const [constVariablePointer] STYMulator-0.21a/src/ym2wav.cpp:121:10: error: Uninitialized variable: &head [uninitvar] STYMulator-0.21a/src/ymplayer.cpp:86:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] STYMulator-0.21a/src/ymplayer.cpp:48:6: style: The scope of the variable 'quit' can be reduced. [variableScope] STYMulator-0.21a/src/ymplayer.cpp:49:6: style: The scope of the variable 'repeat' can be reduced. [variableScope] STYMulator-0.21a/src/ymplayer.cpp:50:6: style: The scope of the variable 'rmode' can be reduced. [variableScope] STYMulator-0.21a/src/ymplayer.cpp:51:6: style: The scope of the variable 'stop' can be reduced. [variableScope] STYMulator-0.21a/src/ymplayer.cpp:52:6: style: The scope of the variable 'pmode' can be reduced. [variableScope] STYMulator-0.21a/src/ymplayer.cpp:53:6: style: The scope of the variable 'paused' can be reduced. [variableScope] STYMulator-0.21a/src/ymplayer.cpp:54:6: style: The scope of the variable 'playing' can be reduced. [variableScope] STYMulator-0.21a/src/ymplayer.cpp:55:6: style: The scope of the variable 'ff' can be reduced. [variableScope] STYMulator-0.21a/src/ymplayer.cpp:56:6: style: The scope of the variable 'rew' can be reduced. [variableScope] STYMulator-0.21a/src/ymplayer.cpp:76:6: style: The scope of the variable 'err' can be reduced. [variableScope] STYMulator-0.21a/src/ymplayer.cpp:77:15: style: The scope of the variable 'buf' can be reduced. [variableScope] STYMulator-0.21a/src/ymplayer.cpp:80:7: style: The scope of the variable 'pcm_name' can be reduced. [variableScope] STYMulator-0.21a/src/ymplayer.cpp:58:7: style: Variable 'platform' can be declared as pointer to const [constVariablePointer] diff: DONE