Removed compiler warning about unused variable.

This commit is contained in:
Andrew Alderwick 2021-03-28 18:19:36 +01:00
parent dad540651e
commit 9d8989627d
1 changed files with 1 additions and 0 deletions

View File

@ -424,6 +424,7 @@ datetime_poke(Uxn *u, Uint16 ptr, Uint8 b0, Uint8 b1)
Uint8 *m = u->ram.dat; Uint8 *m = u->ram.dat;
time_t seconds = time(NULL); time_t seconds = time(NULL);
struct tm *t = localtime(&seconds); struct tm *t = localtime(&seconds);
(void)b0;
t->tm_year += 1900; t->tm_year += 1900;
m[ptr + 0] = (t->tm_year & 0xff00) >> 8; m[ptr + 0] = (t->tm_year & 0xff00) >> 8;
m[ptr + 1] = t->tm_year & 0xff; m[ptr + 1] = t->tm_year & 0xff;