2025-05-07 06:38 ftp://ftp.de.debian.org/debian/pool/main/p/pt2-clone/pt2-clone_1.74+ds.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=sdl --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: 8e656e5 (2025-05-06 23:42:00 +0200) count: 245 245 elapsed-time: 10.2 10.8 head-timing-info: old-timing-info: head results: pt2-clone-1.74/pt_pal_editor/src/config.c:64:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] pt2-clone-1.74/pt_pal_editor/src/config.c:74:18: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] pt2-clone-1.74/pt_pal_editor/src/config.c:82:19: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] pt2-clone-1.74/pt_pal_editor/src/config.c:98:18: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] pt2-clone-1.74/pt_pal_editor/src/config.c:106:19: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] pt2-clone-1.74/pt_pal_editor/src/config.c:122:18: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] pt2-clone-1.74/pt_pal_editor/src/config.c:130:19: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] pt2-clone-1.74/pt_pal_editor/src/config.c:139:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] pt2-clone-1.74/pt_pal_editor/src/config.c:42:23: style: Variable 'configLine' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/pt_pal_editor/src/config.c:298:11: style: Variable 'folder' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/pt_pal_editor/src/hpc.c:137:4: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] pt2-clone-1.74/pt_pal_editor/src/hpc.c:95:47: style:inconclusive: Function 'hpc_SetDurationInHz' argument 2 names different: declaration 'dHz' definition 'hz'. [funcArgNamesDifferent] pt2-clone-1.74/pt_pal_editor/src/hpc.h:22:47: note: Function 'hpc_SetDurationInHz' argument 2 names different: declaration 'dHz' definition 'hz'. pt2-clone-1.74/pt_pal_editor/src/hpc.c:95:47: note: Function 'hpc_SetDurationInHz' argument 2 names different: declaration 'dHz' definition 'hz'. pt2-clone-1.74/pt_pal_editor/src/hpc.c:101:18: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] pt2-clone-1.74/pt_pal_editor/src/main.c:64:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_THREAD_PRIORITY_HIGH [valueFlowBailoutIncompleteVar] pt2-clone-1.74/pt_pal_editor/src/main.c:162:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_MESSAGEBOX_BUTTON_ESCAPEKEY_DEFAULT [valueFlowBailoutIncompleteVar] pt2-clone-1.74/pt_pal_editor/src/main.c:201:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_MESSAGEBOX_ERROR [valueFlowBailoutIncompleteVar] pt2-clone-1.74/pt_pal_editor/src/main.c:222:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_KEYDOWN [valueFlowBailoutIncompleteVar] pt2-clone-1.74/pt_pal_editor/src/main.c:291:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_INIT_AUDIO [valueFlowBailoutIncompleteVar] pt2-clone-1.74/pt_pal_editor/src/gui.c:873:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDLK_ESCAPE [valueFlowBailoutIncompleteVar] pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:4193:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_DFL [valueFlowBailoutIncompleteVar] pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:5085:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ICANON [valueFlowBailoutIncompleteVar] pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:5853:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] pt2-clone-1.74/src/gfx/bmp/bmp2pth.c:70:3: error: Memory leak: out_filename [memleak] pt2-clone-1.74/src/gfx/bmp/bmp2pth.c:91:3: error: Memory leak: out_filename [memleak] pt2-clone-1.74/src/gfx/bmp/bmp2pth.c:103:3: error: Memory leak: out_filename [memleak] pt2-clone-1.74/src/gfx/bmp/bmp2pth.c:116:3: error: Memory leak: out_filename [memleak] pt2-clone-1.74/src/gfx/bmp/bmp2pth.c:13:26: style: Parameter 'argv' can be declared as const array [constParameter] pt2-clone-1.74/src/modloaders/pt2_pp_unpack.c:30:59: style: Parameter 'offsetLens' can be declared as pointer to const [constParameterPointer] pt2-clone-1.74/src/modloaders/pt2_pp_unpack.c:41:11: style: Variable 'bufSrc' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/modloaders/pt2_pp_unpack.c:43:11: style: Variable 'dstEnd' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/modloaders/pt2_xpk_unpack.c:100:11: style: Variable 'PtrEnd' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/modloaders/pt2_xpk_unpack.c:325:43: style: Parameter 'header' can be declared as pointer to const [constParameterPointer] pt2-clone-1.74/src/pt2_audio.c:429:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AUDIO_S16 [valueFlowBailoutIncompleteVar] pt2-clone-1.74/src/pt2_askbox.c:190:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDLK_y [valueFlowBailoutIncompleteVar] pt2-clone-1.74/src/pt2_audio.c:566:27: style: Parameter 'fSampleData' can be declared as pointer to const [constParameterPointer] pt2-clone-1.74/src/pt2_audio.c:579:30: style: Parameter 'dSampleData' can be declared as pointer to const [constParameterPointer] pt2-clone-1.74/src/pt2_audio.c:146:2: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] pt2-clone-1.74/src/pt2_audio.c:151:2: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] pt2-clone-1.74/src/pt2_audio.c:176:2: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] pt2-clone-1.74/src/pt2_audio.c:181:2: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] pt2-clone-1.74/src/pt2_audio.c:202:2: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] pt2-clone-1.74/src/pt2_audio.c:207:2: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] pt2-clone-1.74/src/pt2_audio.c:236:2: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] pt2-clone-1.74/src/pt2_audio.c:241:2: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] pt2-clone-1.74/src/pt2_askbox.c:86:13: style: Variable 'b' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_askbox.c:354:16: style: Variable 'b' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_askbox.c:63:7: style: struct member 'dialog_t::bigDialog' is never used. [unusedStructMember] pt2-clone-1.74/src/pt2_config.c:74:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] pt2-clone-1.74/src/pt2_config.c:412:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] pt2-clone-1.74/src/pt2_chordmaker.c:121:10: style: Variable 'smpData' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_chordmaker.c:275:18: style: Variable 's' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_diskop.c:377:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] pt2-clone-1.74/src/pt2_diskop.c:395:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] pt2-clone-1.74/src/pt2_diskop.c:461:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDLK_UNKNOWN [valueFlowBailoutIncompleteVar] pt2-clone-1.74/src/pt2_diskop.c:488:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] pt2-clone-1.74/src/pt2_diskop.c:512:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] pt2-clone-1.74/src/pt2_diskop.c:560:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] pt2-clone-1.74/src/pt2_diskop.c:602:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDLK_UNKNOWN [valueFlowBailoutIncompleteVar] pt2-clone-1.74/src/pt2_diskop.c:161:10: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] pt2-clone-1.74/src/pt2_diskop.c:195:48: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] pt2-clone-1.74/src/pt2_diskop.c:227:32: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] pt2-clone-1.74/src/pt2_diskop.c:260:48: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] pt2-clone-1.74/src/pt2_diskop.c:695:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] pt2-clone-1.74/src/pt2_diskop.c:701:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] pt2-clone-1.74/src/pt2_diskop.c:707:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] pt2-clone-1.74/src/pt2_diskop.c:98:36: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] pt2-clone-1.74/src/pt2_diskop.c:374:12: style: Variable 'filenameU' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_diskop.c:420:8: style: Variable 'homePath' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_diskop.c:434:8: style: Variable 'homePath' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_diskop.c:448:29: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] pt2-clone-1.74/src/pt2_diskop.c:562:15: style: Variable 'fe1' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_diskop.c:563:15: style: Variable 'fe2' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_diskop.c:681:40: style: Parameter 'entry' can be declared as pointer to const [constParameterPointer] pt2-clone-1.74/src/pt2_diskop.c:722:34: style: Parameter 'entryName' can be declared as pointer to const [constParameterPointer] pt2-clone-1.74/src/pt2_edit.c:246:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SCANCODE_0 [valueFlowBailoutIncompleteVar] pt2-clone-1.74/src/pt2_edit.c:398:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SCANCODE_0 [valueFlowBailoutIncompleteVar] pt2-clone-1.74/src/pt2_edit.c:445:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SCANCODE_NONUSBACKSLASH [valueFlowBailoutIncompleteVar] pt2-clone-1.74/src/pt2_edit.c:1122:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SCANCODE_B [valueFlowBailoutIncompleteVar] pt2-clone-1.74/src/pt2_edit.c:261:13: style: Condition 'key==-1' is always true [knownConditionTrueFalse] pt2-clone-1.74/src/pt2_edit.c:258:18: note: Assignment 'key=-1', assigned value is -1 pt2-clone-1.74/src/pt2_edit.c:261:13: note: Condition 'key==-1' is always true pt2-clone-1.74/src/pt2_edit.c:100:19: style: Variable 's' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_edit.c:396:10: style: Variable 'prevNote' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_edit.c:461:10: style: Variable 'n_start' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_edit.c:535:19: style: Variable 'smpFrom' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_helpers.c:30:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_MESSAGEBOX_ERROR [valueFlowBailoutIncompleteVar] pt2-clone-1.74/src/pt2_helpers.c:48:30: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] pt2-clone-1.74/src/pt2_helpers.c:62:30: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] pt2-clone-1.74/src/pt2_hpc.c:166:4: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] pt2-clone-1.74/src/pt2_hpc.c:122:30: error: Division by zero. [zerodiv] pt2-clone-1.74/src/pt2_hpc.c:116:9: note: Assignment 'dHz=(1UL<<(32-20))-1', assigned value is 4095 pt2-clone-1.74/src/pt2_hpc.c:118:24: note: Assignment 'fpHz=(uint32_t)((dHz*(1UL<<20))+0.5)', assigned value is 0 pt2-clone-1.74/src/pt2_hpc.c:122:30: note: Division by zero pt2-clone-1.74/src/pt2_keyboard.c:51:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KMOD_LCTRL [valueFlowBailoutIncompleteVar] pt2-clone-1.74/src/pt2_keyboard.c:108:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SCANCODE_KP_PLUS [valueFlowBailoutIncompleteVar] pt2-clone-1.74/src/pt2_keyboard.c:158:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SCANCODE_CAPSLOCK [valueFlowBailoutIncompleteVar] pt2-clone-1.74/src/pt2_keyboard.c:3281:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SCANCODE_ESCAPE [valueFlowBailoutIncompleteVar] pt2-clone-1.74/src/pt2_keyboard.c:2953:12: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] pt2-clone-1.74/src/pt2_keyboard.c:2951:16: note: outer condition: ui.diskOpScreenShown pt2-clone-1.74/src/pt2_keyboard.c:2953:12: note: identical inner condition: ui.diskOpScreenShown pt2-clone-1.74/src/pt2_keyboard.c:563:17: style: Variable 'noteSrc' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_keyboard.c:588:16: style: Variable 'noteSrc' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_keyboard.c:781:15: style: Variable 'noteSrc' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_keyboard.c:805:14: style: Variable 'noteSrc' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_keyboard.c:828:14: style: Variable 'noteSrc' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_keyboard.c:1109:13: style: Variable 'noteSrc' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_keyboard.c:1134:13: style: Variable 'noteSrc' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_keyboard.c:1163:13: style: Variable 'noteSrc' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_keyboard.c:1192:13: style: Variable 'noteSrc' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_keyboard.c:1221:13: style: Variable 'noteSrc' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_keyboard.c:1246:13: style: Variable 'noteSrc' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_keyboard.c:1267:13: style: Variable 'noteSrc' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_keyboard.c:1288:13: style: Variable 'noteSrc' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_keyboard.c:1309:13: style: Variable 'noteSrc' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_keyboard.c:1330:13: style: Variable 'noteSrc' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_keyboard.c:1902:21: style: Variable 's' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_keyboard.c:2043:15: style: Variable 'noteSrc' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_keyboard.c:2101:21: style: Variable 's' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_keyboard.c:2174:16: style: Variable 'noteSrc' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_keyboard.c:2407:15: style: Variable 'noteSrc' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_main.c:127:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_THREAD_PRIORITY_HIGH [valueFlowBailoutIncompleteVar] pt2-clone-1.74/src/pt2_main.c:382:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_WINDOWEVENT [valueFlowBailoutIncompleteVar] pt2-clone-1.74/src/pt2_main.c:505:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KMOD_CAPS [valueFlowBailoutIncompleteVar] pt2-clone-1.74/src/pt2_main.c:614:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_WINDOW_MINIMIZED [valueFlowBailoutIncompleteVar] pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3345:20: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3347:20: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3349:20: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3432:24: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3434:19: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3437:23: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3442:9: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3893:26: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3903:74: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:7239:22: style: Condition '!p' is always false [knownConditionTrueFalse] pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:6907:6: error: Common realloc mistake: 'lBuff' nulled but not freed upon failure [memleakOnRealloc] pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:324:37: warning: Either the condition '!aOldSubStr' is redundant or there is possible null pointer dereference: aOldSubStr. [nullPointerRedundantCheck] pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:331:14: note: Assuming that condition '!aOldSubStr' is not redundant pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:324:37: note: Null pointer dereference pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3290:44: warning: If resource allocation fails, then there is a possible null pointer dereference: lIn [nullPointerOutOfResources] pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3289:15: note: Assuming allocation function fails pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3289:15: note: Assignment 'lIn=popen(lTestedString,"r")', assigned value is 0 pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3290:44: note: Null pointer dereference pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3330:49: warning: If resource allocation fails, then there is a possible null pointer dereference: lIn [nullPointerOutOfResources] pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3329:16: note: Assuming allocation function fails pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3329:16: note: Assignment 'lIn=popen(lTestedString,"r")', assigned value is 0 pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3330:49: note: Null pointer dereference pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3331:17: warning: If resource allocation fails, then there is a possible null pointer dereference: lIn [nullPointerOutOfResources] pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3329:16: note: Assuming allocation function fails pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3329:16: note: Assignment 'lIn=popen(lTestedString,"r")', assigned value is 0 pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3331:17: note: Null pointer dereference pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3363:47: warning: If resource allocation fails, then there is a possible null pointer dereference: lIn [nullPointerOutOfResources] pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3362:20: note: Assuming allocation function fails pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3362:20: note: Assignment 'lIn=popen(aCommand,"r")', assigned value is 0 pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3363:47: note: Null pointer dereference pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3739:42: warning: If resource allocation fails, then there is a possible null pointer dereference: lIn [nullPointerOutOfResources] pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3738:21: note: Assuming allocation function fails pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3738:21: note: Assignment 'lIn=popen("perl -MNet::DBus -e \"Net::DBus->session->get_service('org.freedesktop.Notifications')\" 2>&1","r")', assigned value is 0 pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3739:42: note: Null pointer dereference pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3763:63: warning: If resource allocation fails, then there is a possible null pointer dereference: lIn [nullPointerOutOfResources] pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3762:36: note: Assuming allocation function fails pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3762:36: note: Assignment 'lIn=popen("test -e /System/Library/Sounds/Ping.aiff || echo Ping","r")', assigned value is 0 pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3763:63: note: Null pointer dereference pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3888:63: warning: If resource allocation fails, then there is a possible null pointer dereference: lIn [nullPointerOutOfResources] pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3887:36: note: Assuming allocation function fails pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3887:36: note: Assignment 'lIn=popen("zenity --version","r")', assigned value is 0 pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3888:63: note: Null pointer dereference pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3939:42: warning: If resource allocation fails, then there is a possible null pointer dereference: lIn [nullPointerOutOfResources] pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3938:15: note: Assuming allocation function fails pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3938:15: note: Assignment 'lIn=popen("kdialog --attach 2>&1","r")', assigned value is 0 pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3939:42: note: Null pointer dereference pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3953:43: warning: If resource allocation fails, then there is a possible null pointer dereference: lIn [nullPointerOutOfResources] pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3952:16: note: Assuming allocation function fails pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3952:16: note: Assignment 'lIn=popen("kdialog --passivepopup 2>&1","r")', assigned value is 0 pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3953:43: note: Null pointer dereference pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3981:57: warning: If resource allocation fails, then there is a possible null pointer dereference: lIn [nullPointerOutOfResources] pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3979:28: note: Assuming allocation function fails pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3979:28: note: Assignment 'lIn=popen("osascript -e 'set osver to system version of (system info)'","r")', assigned value is 0 pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3981:57: note: Null pointer dereference pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3466:15: style: Variable 'lArray' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:3921:9: style: Variable 'lDesktop' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:4059:14: style: Variable 'lPythonParams' can be declared as const array [constVariable] pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:4080:7: style: Variable 'lPythonParams' can be declared as const array [constVariable] pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:4101:14: style: Variable 'lPythonParams' can be declared as const array [constVariable] pt2-clone-1.74/pt_pal_editor/src/tinyfiledialogs/tinyfiledialogs.c:5394:16: style: Variable 'lEOF' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_mod2wav.c:379:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] pt2-clone-1.74/src/pt2_module_loader.c:37:28: style: Parameter 'fileName' can be declared as pointer to const [constParameterPointer] pt2-clone-1.74/src/pt2_module_loader.c:277:27: style: Parameter 'arg' can be declared as pointer to const [constParameterPointer] pt2-clone-1.74/src/pt2_module_loader.c:319:33: style: Parameter 'ext' can be declared as pointer to const [constParameterPointer] pt2-clone-1.74/src/pt2_module_loader.c:325:8: style: Variable 'fileName' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_module_loader.c:348:28: style: Parameter 'fullPath' can be declared as pointer to const [constParameterPointer] pt2-clone-1.74/src/pt2_mod2wav.c:427:2: error: Resource leak: fOut [resourceLeak] pt2-clone-1.74/src/pt2_mod2wav.c:304:9: warning: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] pt2-clone-1.74/src/pt2_mod2wav.c:299:12: note: Assuming allocation function fails pt2-clone-1.74/src/pt2_mod2wav.c:299:12: note: Assignment 'f=fopen(lastFilename,"r+b")', assigned value is 0 pt2-clone-1.74/src/pt2_mod2wav.c:304:9: note: Null pointer dereference pt2-clone-1.74/src/pt2_mod2wav.c:313:60: warning: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] pt2-clone-1.74/src/pt2_mod2wav.c:299:12: note: Assuming allocation function fails pt2-clone-1.74/src/pt2_mod2wav.c:299:12: note: Assignment 'f=fopen(lastFilename,"r+b")', assigned value is 0 pt2-clone-1.74/src/pt2_mod2wav.c:313:60: note: Null pointer dereference pt2-clone-1.74/src/pt2_mod2wav.c:314:10: warning: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] pt2-clone-1.74/src/pt2_mod2wav.c:299:12: note: Assuming allocation function fails pt2-clone-1.74/src/pt2_mod2wav.c:299:12: note: Assignment 'f=fopen(lastFilename,"r+b")', assigned value is 0 pt2-clone-1.74/src/pt2_mod2wav.c:314:10: note: Null pointer dereference pt2-clone-1.74/src/pt2_mod2wav.c:324:61: warning: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] pt2-clone-1.74/src/pt2_mod2wav.c:299:12: note: Assuming allocation function fails pt2-clone-1.74/src/pt2_mod2wav.c:299:12: note: Assignment 'f=fopen(lastFilename,"r+b")', assigned value is 0 pt2-clone-1.74/src/pt2_mod2wav.c:324:61: note: Null pointer dereference pt2-clone-1.74/src/pt2_mod2wav.c:329:10: warning: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] pt2-clone-1.74/src/pt2_mod2wav.c:299:12: note: Assuming allocation function fails pt2-clone-1.74/src/pt2_mod2wav.c:299:12: note: Assignment 'f=fopen(lastFilename,"r+b")', assigned value is 0 pt2-clone-1.74/src/pt2_mod2wav.c:329:10: note: Null pointer dereference pt2-clone-1.74/src/pt2_mod2wav.c:470:12: style: Variable 'note' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_module_saver.c:15:20: style: Parameter 'fileName' can be declared as pointer to const [constParameterPointer] pt2-clone-1.74/src/pt2_module_saver.c:28:19: style: Variable 's' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_mouse.c:208:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_BLENDMODE_NONE [valueFlowBailoutIncompleteVar] pt2-clone-1.74/src/pt2_mouse.c:375:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_BUTTON_LEFT [valueFlowBailoutIncompleteVar] pt2-clone-1.74/src/pt2_mouse.c:429:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_BUTTON_LEFT [valueFlowBailoutIncompleteVar] pt2-clone-1.74/src/pt2_mouse.c:3307:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lengthDisp [valueFlowBailoutIncompleteVar] pt2-clone-1.74/src/pt2_config.c:192:21: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] pt2-clone-1.74/src/pt2_config.c:210:17: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] pt2-clone-1.74/src/pt2_config.c:495:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] pt2-clone-1.74/src/pt2_config.c:701:21: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] pt2-clone-1.74/src/pt2_config.c:711:18: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] pt2-clone-1.74/src/pt2_config.c:720:19: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] pt2-clone-1.74/src/pt2_config.c:736:18: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] pt2-clone-1.74/src/pt2_config.c:744:19: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] pt2-clone-1.74/src/pt2_config.c:760:18: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] pt2-clone-1.74/src/pt2_config.c:768:19: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] pt2-clone-1.74/src/pt2_config.c:777:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] pt2-clone-1.74/src/pt2_config.c:93:3: error: Resource leak: f [resourceLeak] pt2-clone-1.74/src/pt2_config.c:101:3: error: Resource leak: f [resourceLeak] pt2-clone-1.74/src/pt2_config.c:572:18: style: Redundant assignment of 'config.transDel' to itself. [selfAssignment] pt2-clone-1.74/src/pt2_config.c:578:20: style: Redundant assignment of 'config.accidental' to itself. [selfAssignment] pt2-clone-1.74/src/pt2_config.c:605:23: style: Redundant assignment of 'config.blankZeroFlag' to itself. [selfAssignment] pt2-clone-1.74/src/pt2_config.c:701:8: style: Variable 'configLine' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_sample_loader.c:36:64: style: Parameter 'entryName' can be declared as pointer to const [constParameterPointer] pt2-clone-1.74/src/pt2_sample_loader.c:53:26: style: Parameter 'fileName' can be declared as pointer to const [constParameterPointer] pt2-clone-1.74/src/pt2_sample_saver.c:28:17: style: Condition 'fileExtPos>0' is always true [knownConditionTrueFalse] pt2-clone-1.74/src/pt2_sample_saver.c:23:21: note: Assuming that condition 'filenameLength<5' is not redundant pt2-clone-1.74/src/pt2_sample_saver.c:27:39: note: Assignment 'fileExtPos=filenameLength-4', assigned value is greater than 0 pt2-clone-1.74/src/pt2_sample_saver.c:28:17: note: Condition 'fileExtPos>0' is always true pt2-clone-1.74/src/pt2_sample_saver.c:32:48: style: Parameter 'chunkName' can be declared as pointer to const [constParameterPointer] pt2-clone-1.74/src/pt2_replayer.c:1157:25: style: Variable 'editor.currPatternDisp' is reassigned a value before the old one has been used. [redundantAssignment] pt2-clone-1.74/src/pt2_replayer.c:1155:25: note: editor.currPatternDisp is assigned pt2-clone-1.74/src/pt2_replayer.c:1157:25: note: editor.currPatternDisp is overwritten pt2-clone-1.74/src/pt2_replayer.c:1158:27: style: Variable 'editor.currPosEdPattDisp' is reassigned a value before the old one has been used. [redundantAssignment] pt2-clone-1.74/src/pt2_replayer.c:1156:27: note: editor.currPosEdPattDisp is assigned pt2-clone-1.74/src/pt2_replayer.c:1158:27: note: editor.currPosEdPattDisp is overwritten pt2-clone-1.74/src/pt2_replayer.c:109:41: style:inconclusive: Function 'initializeModuleChannels' argument 1 names different: declaration 's' definition 'm'. [funcArgNamesDifferent] pt2-clone-1.74/src/pt2_replayer.h:14:41: note: Function 'initializeModuleChannels' argument 1 names different: declaration 's' definition 'm'. pt2-clone-1.74/src/pt2_replayer.c:109:41: note: Function 'initializeModuleChannels' argument 1 names different: declaration 's' definition 'm'. pt2-clone-1.74/src/pt2_replayer.c:53:18: style: Variable 's' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_replayer.c:472:43: style: Parameter 'ch' can be declared as pointer to const [constParameterPointer] pt2-clone-1.74/src/pt2_replayer.c:489:43: style: Parameter 'ch' can be declared as pointer to const [constParameterPointer] pt2-clone-1.74/src/pt2_replayer.c:506:43: style: Parameter 'ch' can be declared as pointer to const [constParameterPointer] pt2-clone-1.74/src/pt2_replayer.c:515:39: style: Parameter 'ch' can be declared as pointer to const [constParameterPointer] pt2-clone-1.74/src/pt2_replayer.c:531:39: style: Parameter 'ch' can be declared as pointer to const [constParameterPointer] pt2-clone-1.74/src/pt2_replayer.c:606:42: style: Parameter 'ch' can be declared as pointer to const [constParameterPointer] pt2-clone-1.74/src/pt2_replayer.c:1053:45: style: Parameter 'ch' can be declared as pointer to const [constParameterPointer] pt2-clone-1.74/src/pt2_replayer.c:1086:19: style: Variable 's' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_sampling.c:299:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_AudioSpec [valueFlowBailoutIncompleteVar] pt2-clone-1.74/src/pt2_mouse.c:1334:21: style: Variable 's' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_mouse.c:2413:13: style: Variable 'ptr8_3' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_mouse.c:2585:20: style: Variable 's' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_mouse.c:2608:20: style: Variable 's' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_mouse.c:2936:20: style: Variable 's' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_mouse.c:2950:20: style: Variable 's' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_scopes.c:290:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_THREAD_PRIORITY_HIGH [valueFlowBailoutIncompleteVar] pt2-clone-1.74/src/pt2_sampling.c:650:3: error: Memory leak: fBuffer [memleak] pt2-clone-1.74/src/pt2_sampler.c:172:34: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] pt2-clone-1.74/src/pt2_sampler.c:1595:45: style: Condition 'sampler.samLength-sampler.samDisplay<0' is always false [knownConditionTrueFalse] pt2-clone-1.74/src/pt2_sampler.c:1593:26: note: Assuming that condition 'sampler.samDisplaysamples[editor.currSample]' here. pt2-clone-1.74/src/pt2_sampler.c:2426:8: note: Assuming condition is false pt2-clone-1.74/src/pt2_sampler.c:2468:4: note: Variable 's' is assigned an expression that holds the same value. pt2-clone-1.74/src/pt2_sampler.c:371:43: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] pt2-clone-1.74/src/pt2_sampler.c:190:36: style: Parameter 's' can be declared as pointer to const [constParameterPointer] pt2-clone-1.74/src/pt2_sampler.c:201:18: style: Variable 's' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_sampler.c:217:18: style: Variable 's' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_sampler.c:358:39: style: Parameter 'smpPtr' can be declared as pointer to const [constParameterPointer] pt2-clone-1.74/src/pt2_sampler.c:519:19: style: Variable 's' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_sampler.c:794:18: style: Variable 's' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_sampler.c:1040:36: style: Parameter 'ptr' can be declared as pointer to const [constParameterPointer] pt2-clone-1.74/src/pt2_sampler.c:1068:21: style: Variable 'fromPtr2' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_sampler.c:1085:18: style: Variable 's1' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_sampler.c:1086:18: style: Variable 's2' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_sampler.c:1296:18: style: Variable 's' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_sampler.c:1327:18: style: Variable 's' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_sampler.c:1363:18: style: Variable 's' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_sampler.c:1399:18: style: Variable 's' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_sampler.c:1843:18: style: Variable 's' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_sampler.c:1964:18: style: Variable 's' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_sampler.c:2099:18: style: Variable 's' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_sampler.c:2118:18: style: Variable 's' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_textedit.c:242:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_BUTTON_RIGHT [valueFlowBailoutIncompleteVar] pt2-clone-1.74/src/pt2_textedit.c:404:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] pt2-clone-1.74/src/pt2_textedit.c:1317:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SCANCODE_RETURN [valueFlowBailoutIncompleteVar] pt2-clone-1.74/src/pt2_visuals.c:896:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_MOUSEBUTTONUP [valueFlowBailoutIncompleteVar] pt2-clone-1.74/src/pt2_visuals.c:937:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_BUTTON_LMASK [valueFlowBailoutIncompleteVar] pt2-clone-1.74/src/pt2_visuals.c:1724:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_WINDOW_MINIMIZED [valueFlowBailoutIncompleteVar] pt2-clone-1.74/src/pt2_visuals.c:1923:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_WINDOW_FULLSCREEN_DESKTOP [valueFlowBailoutIncompleteVar] pt2-clone-1.74/src/pt2_visuals.c:2001:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_RENDERER_PRESENTVSYNC [valueFlowBailoutIncompleteVar] pt2-clone-1.74/src/pt2_visuals.c:387:18: style: Variable 'currSample' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_visuals.c:652:18: style: Variable 's' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_visuals.c:1464:13: style: Variable 's' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_visuals.c:1694:8: style: Variable 'textPtr' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_textedit.c:1232:18: style: Variable 'noteSrc' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/pt2_textedit.c:1254:17: style: Variable 'noteSrc' can be declared as pointer to const [constVariablePointer] pt2-clone-1.74/src/smploaders/pt2_load_wav.c:133:38: style: Condition 'sampleLength==0' is always false [knownConditionTrueFalse] pt2-clone-1.74/src/smploaders/pt2_load_wav.c:117:60: note: Assuming that condition 'dataLen==0' is not redundant pt2-clone-1.74/src/smploaders/pt2_load_wav.c:130:25: note: Assignment 'sampleLength=dataLen', assigned value is greater than 0 pt2-clone-1.74/src/smploaders/pt2_load_wav.c:133:38: note: Condition 'sampleLength==0' is always false pt2-clone-1.74/src/smploaders/pt2_load_wav.c:434:28: portability: Casting between unsigned int * and float * which have an incompatible binary data representation. [invalidPointerCast] pt2-clone-1.74/src/smploaders/pt2_load_wav.c:490:30: portability: Casting between unsigned int * and double * which have an incompatible binary data representation. [invalidPointerCast] diff: DONE