mirror of https://github.com/encounter/SDL.git
Fix false compiler warning: initialize the variable 'memdiff'
This commit is contained in:
parent
ebc12a2fd2
commit
4d1c2a1857
|
@ -968,7 +968,7 @@ SDL_SIMDRealloc(void *mem, const size_t len)
|
||||||
const size_t padded = (padding != alignment) ? (len + padding) : len;
|
const size_t padded = (padding != alignment) ? (len + padding) : len;
|
||||||
Uint8 *retval = (Uint8*) mem;
|
Uint8 *retval = (Uint8*) mem;
|
||||||
void *oldmem = mem;
|
void *oldmem = mem;
|
||||||
size_t memdiff, ptrdiff;
|
size_t memdiff = 0, ptrdiff;
|
||||||
Uint8 *ptr;
|
Uint8 *ptr;
|
||||||
|
|
||||||
if (mem) {
|
if (mem) {
|
||||||
|
|
Loading…
Reference in New Issue