# cppcheck baseline -- generated by staticGate.sh --update
# format: <count> <normalized key>
1 src/apps/kpunch/cpanel/cpanel.c|unsignedLessThanZero|Checking if unsigned expression '(sThemeEntries)?((struct stbds_array_header*)(sThemeEntries)-1)->capacity:0' is less than zero.
1 src/apps/kpunch/cpanel/cpanel.c|unsignedLessThanZero|Checking if unsigned expression '(sThemeLabels)?((struct stbds_array_header*)(sThemeLabels)-1)->capacity:0' is less than zero.
1 src/apps/kpunch/cpanel/cpanel.c|unsignedLessThanZero|Checking if unsigned expression '(sVideoLabels)?((struct stbds_array_header*)(sVideoLabels)-1)->capacity:0' is less than zero.
1 src/apps/kpunch/cpanel/cpanel.c|unsignedLessThanZero|Checking if unsigned expression '(sWpaperEntries)?((struct stbds_array_header*)(sWpaperEntries)-1)->capacity:0' is less than zero.
1 src/apps/kpunch/cpanel/cpanel.c|unsignedLessThanZero|Checking if unsigned expression '(sWpaperLabels)?((struct stbds_array_header*)(sWpaperLabels)-1)->capacity:0' is less than zero.
1 src/apps/kpunch/dvxbasic/compiler/compact.c|variableScope|The scope of the variable 'lineCount' can be reduced.
1 src/apps/kpunch/dvxbasic/compiler/lexer.c|knownConditionTrueFalse|Condition '!isdigit((unsigned char)c)' is always true
1 src/apps/kpunch/dvxbasic/compiler/obfuscate.c|knownConditionTrueFalse|Condition 'valueEnd-valueStart>=2' is always false
1 src/apps/kpunch/dvxbasic/compiler/obfuscate.c|knownConditionTrueFalse|Condition 'valueLen>0' is always false
1 src/apps/kpunch/dvxbasic/compiler/parser.c|shiftNegativeLHS|Shifting a negative value is technically undefined behaviour
1 src/apps/kpunch/dvxbasic/compiler/parser.c|unusedStructMember|struct member 'BuiltinFuncT::resultType' is never used.
1 src/apps/kpunch/dvxbasic/formrt/formrt.c|constParameterCallback|Parameter 'win' can be declared as pointer to const. However it seems that 'onFormClose' is a callback function, if 'win' is declared with const you might also need to cast function pointer(s).
1 src/apps/kpunch/dvxbasic/formrt/formrt.c|constParameterCallback|Parameter 'win' can be declared as pointer to const. However it seems that 'onFormMenu' is a callback function, if 'win' is declared with const you might also need to cast function pointer(s).
1 src/apps/kpunch/dvxbasic/formrt/frmParser.c|unreadVariable|Variable 'inForm' is assigned a value that is never used.
2 src/apps/kpunch/dvxbasic/ide/ideDesigner.c|constVariable|Variable 'hx' can be declared as const array
2 src/apps/kpunch/dvxbasic/ide/ideDesigner.c|constVariable|Variable 'hy' can be declared as const array
1 src/apps/kpunch/dvxbasic/ide/ideMain.c|knownConditionTrueFalse|Condition 'idx>=0' is always true
1 src/apps/kpunch/dvxbasic/ide/ideMain.c|unsignedLessThanZero|Checking if unsigned expression '(sBreakpoints)?((struct stbds_array_header*)(sBreakpoints)-1)->capacity:0' is less than zero.
2 src/apps/kpunch/dvxbasic/ide/ideMain.c|unsignedLessThanZero|Checking if unsigned expression '(sEvtItems)?((struct stbds_array_header*)(sEvtItems)-1)->capacity:0' is less than zero.
1 src/apps/kpunch/dvxbasic/ide/ideMain.c|unsignedLessThanZero|Checking if unsigned expression '(sObjItems)?((struct stbds_array_header*)(sObjItems)-1)->capacity:0' is less than zero.
2 src/apps/kpunch/dvxbasic/ide/ideMain.c|unsignedLessThanZero|Checking if unsigned expression '(sProcTable)?((struct stbds_array_header*)(sProcTable)-1)->capacity:0' is less than zero.
1 src/apps/kpunch/dvxbasic/ide/ideMain.c|unsignedLessThanZero|Checking if unsigned expression '(sRecentFiles)?((struct stbds_array_header*)(sRecentFiles)-1)->capacity:0' is less than zero.
1 src/apps/kpunch/dvxbasic/ide/ideMain.c|unsignedLessThanZero|Checking if unsigned expression 'rows->cells?((struct stbds_array_header*)(rows->cells)-1)->capacity:0' is less than zero.
1 src/apps/kpunch/dvxbasic/ide/ideMain.c|unsignedLessThanZero|Checking if unsigned expression 'rows->strs?((struct stbds_array_header*)(rows->strs)-1)->capacity:0' is less than zero.
1 src/apps/kpunch/dvxbasic/ide/ideMenuEditor.c|unsignedLessThanZero|Checking if unsigned expression '(sLabelBufs)?((struct stbds_array_header*)(sLabelBufs)-1)->capacity:0' is less than zero.
1 src/apps/kpunch/dvxbasic/ide/ideMenuEditor.c|unsignedLessThanZero|Checking if unsigned expression '(sLabels)?((struct stbds_array_header*)(sLabels)-1)->capacity:0' is less than zero.
1 src/apps/kpunch/dvxbasic/ide/ideProperties.c|unsignedLessThanZero|Checking if unsigned expression '(sCellData)?((struct stbds_array_header*)(sCellData)-1)->capacity:0' is less than zero.
1 src/apps/kpunch/dvxbasic/ide/ideProperties.c|unsignedLessThanZero|Checking if unsigned expression '(sTreeLabels)?((struct stbds_array_header*)(sTreeLabels)-1)->capacity:0' is less than zero.
1 src/apps/kpunch/dvxbasic/ide/ideToolbox.c|unsignedLessThanZero|Checking if unsigned expression '(sTbxTools)?((struct stbds_array_header*)(sTbxTools)-1)->capacity:0' is less than zero.
1 src/apps/kpunch/dvxbasic/runtime/values.c|unusedStructMember|struct member 'Anonymous1::nul' is never used.
1 src/apps/kpunch/dvxbasic/runtime/vm.c|variableScope|The scope of the variable 'inSection' can be reduced.
1 src/apps/kpunch/dvxbasic/stub/basrun.c|variableScope|The scope of the variable 'directive' can be reduced.
1 src/apps/kpunch/dvxbasic/test_suite.c|constVariable|Variable 'frmLens' can be declared as const array
1 src/apps/kpunch/dvxbasic/test_suite.c|variableScope|The scope of the variable 'detail' can be reduced.
1 src/apps/kpunch/dvxhelp/dvxhelp.c|constParameterCallback|Parameter 'w' can be declared as pointer to const. However it seems that 'helpRulePaint' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s).
1 src/libs/kpunch/libdvx/dvxApp.c|shadowVariable|Local variable 'k' shadows outer variable
1 src/libs/kpunch/libdvx/dvxDialog.c|constParameterCallback|Parameter 'w' can be declared as pointer to const. However it seems that 'fdOnPathKey' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s).
1 src/libs/kpunch/listhelp/listHelp.c|unsignedLessThanZero|Checking if unsigned expression '(owned)?((struct stbds_array_header*)(owned)-1)->capacity:0' is less than zero.
1 src/libs/kpunch/taskmgr/shellTaskMgr.c|unsignedLessThanZero|Checking if unsigned expression '(sCells)?((struct stbds_array_header*)(sCells)-1)->capacity:0' is less than zero.
1 src/libs/kpunch/taskmgr/shellTaskMgr.c|unsignedLessThanZero|Checking if unsigned expression '(sRowStrs)?((struct stbds_array_header*)(sRowStrs)-1)->capacity:0' is less than zero.
1 src/libs/kpunch/texthelp/textHelp.c|constParameterCallback|Parameter 'w' can be declared as pointer to const. However it seems that 'textEditClearWidgetRef' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s).
1 src/libs/kpunch/texthelp/textHelp.c|knownConditionTrueFalse|Condition 'drawEnd<visEnd' is always false
1 src/libs/kpunch/texthelp/textHelp.c|variableScope|The scope of the variable 'vc' can be reduced.
1 src/tools/bmp2raw.c|unreadVariable|Variable 'height' is assigned a value that is never used.
1 src/tools/bmpDraw.c|constVariable|Variable 'pad' can be declared as const array
1 src/tools/proxy/proxy.c|constParameter|Parameter 'argv' can be declared as const array
1 src/tools/proxy/proxy.c|shadowVariable|Local variable 'rc' shadows outer variable
1 src/widgets/kpunch/comboBox/widgetComboBox.c|unsignedLessThanZero|Checking if unsigned expression 'd->ownedItems?((struct stbds_array_header*)(d->ownedItems)-1)->capacity:0' is less than zero.
1 src/widgets/kpunch/dropdown/widgetDropdown.c|unsignedLessThanZero|Checking if unsigned expression 'd->ownedItems?((struct stbds_array_header*)(d->ownedItems)-1)->capacity:0' is less than zero.
1 src/widgets/kpunch/listBox/widgetListBox.c|unsignedLessThanZero|Checking if unsigned expression 'd->ownedItems?((struct stbds_array_header*)(d->ownedItems)-1)->capacity:0' is less than zero.
1 src/widgets/kpunch/listView/widgetListView.c|knownConditionTrueFalse|Condition 'displaySel>=0' is always true
1 src/widgets/kpunch/listView/widgetListView.c|knownConditionTrueFalse|Condition 'from<0' is always false
1 src/widgets/kpunch/listView/widgetListView.c|knownConditionTrueFalse|Condition 'relY<0' is always false
1 src/widgets/kpunch/listView/widgetListView.c|unreadVariable|Variable 'needVSb' is assigned a value that is never used.
1 src/widgets/kpunch/listView/widgetListView.c|unsignedLessThanZero|Checking if unsigned expression 'lv->ownedCells?((struct stbds_array_header*)(lv->ownedCells)-1)->capacity:0' is less than zero.
3 src/widgets/kpunch/textInput/widgetTextInput.c|redundantAssignment|Variable 'ti->selEnd' is reassigned a value before the old one has been used.
1 src/widgets/kpunch/toolbar/widgetToolbar.c|constParameterCallback|Parameter 'w' can be declared as pointer to const. However it seems that 'widgetToolbarPaint' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s).
