Skip to content

Commit

Permalink
Fix false compiler warning: initialize the variable 'memdiff'
Browse files Browse the repository at this point in the history
  • Loading branch information
1bsyl committed Sep 7, 2020
1 parent ebc12a2 commit 4d1c2a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cpuinfo/SDL_cpuinfo.c
Expand Up @@ -968,7 +968,7 @@ SDL_SIMDRealloc(void *mem, const size_t len)
const size_t padded = (padding != alignment) ? (len + padding) : len;
Uint8 *retval = (Uint8*) mem;
void *oldmem = mem;
size_t memdiff, ptrdiff;
size_t memdiff = 0, ptrdiff;
Uint8 *ptr;

if (mem) {
Expand Down

0 comments on commit 4d1c2a1

Please sign in to comment.