mirror of
https://github.com/Interlisp/maiko.git
synced 2026-01-15 15:57:13 +00:00
Remove replicated (debug) storage for stack block checks causing shadowed variable warnings.
Initialize free stack block debug storage using sizeof() appropriately. modified: src/llstk.c
This commit is contained in:
parent
af30a6d5a9
commit
ba0a42f663
14
src/llstk.c
14
src/llstk.c
@ -540,7 +540,7 @@ void blt(register DLword *dest68k, register DLword *source68k, int nw) {
|
||||
DLword offset;
|
||||
DLword size;
|
||||
} bigFSB[100];
|
||||
int bigFSBindex = 0;
|
||||
int bigFSBindex;
|
||||
#endif
|
||||
|
||||
void stack_check(StackWord *start68k) {
|
||||
@ -553,7 +553,8 @@ void stack_check(StackWord *start68k) {
|
||||
DLword freesize;
|
||||
|
||||
#ifdef FSBCHECK
|
||||
memset((char *)bigFSB, 0, 100 * 2 * 2);
|
||||
bigFSBindex = 0;
|
||||
memset((char *)bigFSB, 0, sizeof(bigFSB));
|
||||
#endif
|
||||
|
||||
if ((CURRENTFX->nextblock != StkOffset_from_68K(CurrentStackPTR)) || (!FSBP(CurrentStackPTR))) {
|
||||
@ -848,13 +849,8 @@ void quick_stack_check(void) {
|
||||
DLword freesize;
|
||||
|
||||
#ifdef FSBCHECK
|
||||
struct big_fsbs {
|
||||
DLword offset;
|
||||
DLword size;
|
||||
} bigFSB[100];
|
||||
int bigFSBindex = 0;
|
||||
|
||||
memset((char *)bigFSB, 0, 100 * 2 * 2);
|
||||
bigFSBindex = 0;
|
||||
memset((char *)bigFSB, 0, sizeof(bigFSB));
|
||||
#endif
|
||||
|
||||
if ((CURRENTFX->nextblock != StkOffset_from_68K(CurrentStackPTR)) || (!FSBP(CurrentStackPTR))) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user