GLK: ALAN3: Fix warning

This commit is contained in:
Eugene Sandulenko 2023-04-29 20:22:14 +02:00
parent 7a45dfe6be
commit 0084e7f80b
No known key found for this signature in database
GPG Key ID: 014D387312D34F08

View File

@ -54,18 +54,15 @@ Breakpoint breakpoint[BREAKPOINTMAX];
/*----------------------------------------------------------------------*/
static void showAttributes(AttributeEntry *attrib) {
AttributeEntry *at;
int i;
char str[80];
if (attrib == nullptr)
return;
i = 1;
for (at = attrib; !isEndOfArray(at); at++) {
Common::sprintf_s(str, "$i$t%s[%d] = %d", (char *) pointerTo(at->id), at->code, (int)at->value);
output(str);
i++;
}
}